refactor(#2363): single source of truth for DHCP pool size
Move the DHCP pool size constant out of the two separate definitions (Nix literal + Rust const) into a shared data file: nix/dhcp-pool-size. - nix/dhcp-pool-size: new file, contains '14' - hive-gateway.nix: reads via builtins.readFile + toIntBase10 - lifecycle/mod.rs: parses via include_bytes! const block at compile time Cargo automatically tracks include_bytes! as a file dependency so a change to nix/dhcp-pool-size triggers recompilation without build.rs.
This commit is contained in:
parent
a3796890f5
commit
3068034463
3 changed files with 24 additions and 6 deletions
1
nix/dhcp-pool-size
Normal file
1
nix/dhcp-pool-size
Normal file
|
|
@ -0,0 +1 @@
|
|||
14
|
||||
Loading…
Reference in a new issue