Allow large_stack_arrays where sqlx::migrate! embeds the directory
This is what actually failed the 0.11.8 clippy gate, at all three
sqlx::migrate! sites. The lint is new because the array is: the macro embeds
every migration as one literal, so it measures the whole migrations/ directory,
and that crossed the 16KB threshold when the mailing-list tables landed. Nothing
about the call sites changed.
Allowed rather than worked around. The array is the point of the macro, it is
built once at startup, and the alternative is discovering migrations at runtime,
which is strictly worse for a service that must not start against the wrong
schema.
Worth knowing for the next time a gate goes red on a lint nobody touched: the
clippy log at /logs/{version}/{gate} is keyed by version and not by run, so at
0.11.8 it holds several runs' output concatenated. The section that matters is
the one whose workdir path carries the sha you built. Reading the top of that
file sends you to fix errors a previous commit already fixed, which is what
happened here.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-06 16:04 UTC