Repository navigation
Commit e399375
committed
fix(nix): apply the repository cargo config to Nix builds
`.cargo/config.toml` sets 47 `SQLITE_OMIT_*` values, and sqlite3-src's build
script turns every `SQLITE_*` environment variable into a `-D` define for the
bundled amalgamation. Cargo only reads that file when the working directory is the
repository root, so it applied to local `cargo` runs and to nothing else: every
Nix build, including the shipped binaries, compiled the full SQLite.
Reading the same file in package.nix rather than duplicating the values keeps one
source of truth. The aarch64-darwin binary drops 3,232,896 -> 3,030,272 bytes
(-6.3%), and the four SQLite-backed adapters produce byte-identical JSON before
and after.1 parent 60f1984 commit e399375
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
57 | | - | |
| 63 | + | |
| 64 | + | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| |||
0 commit comments