[env] SQLX_OFFLINE = "false" # GPU tests deadlock under parallel execution (shared CUDA context + 4GB RTX 3050). # Single-threaded by default; CI overrides via RUST_TEST_THREADS in workflow. RUST_TEST_THREADS = "1" [cargo-new] vcs = "none" [net] git-fetch-with-cli = true [build] # jobs: omitted → cargo uses all logical CPUs (scales to any machine) incremental = true pipelining = true rustflags = [ "-D", "unsafe_op_in_unsafe_fn", "-D", "clippy::undocumented_unsafe_blocks", "-W", "rust_2024_idioms", "-C", "force-frame-pointers=yes", "-C", "relocation-model=pic", ] [term] verbose = false progress.when = "auto" [target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = [ "-C", "link-arg=-fuse-ld=mold", "-C", "link-arg=-Wl,-z,relro,-z,now", "-C", "link-arg=-Wl,--as-needed", # AVX2/FMA baseline — matches both Scaleway L4/H100 and most dev machines "-C", "target-cpu=x86-64-v3", "-C", "target-feature=+avx2,+fma,+bmi2", # opt-level and codegen-units are set per-profile, NOT here. # Setting them here would override ALL profiles (dev/test included), # forcing full O3 + single-thread codegen on test builds. ] # Profile definitions live in Cargo.toml — [profile.*] blocks in config.toml # are silently ignored by Cargo. Do NOT add profiles here.