Post B6yWfkjzRA691IMSOm by filmroellchen@chaos.social
(DIR) More posts by filmroellchen@chaos.social
(DIR) Post #B6yWfevp2Fzv0Fqp0a by alina@girldick.gay
0 likes, 0 repeats
some will hate me for this but in order to keep my source of truth in nix i am now using a flake.parts module to generate Cargo.toml files for all crates packaged with nix which just runs as pre-commit hook call to nix flake checki think this is a pretty good approach for managing non-nix source files that need to be tracked in the git working tree from within nixwhile this breaks the development flow for non-nix devs who want to add dependencies with a call to `cargo add`, it also enforces the states of the nix packaging/deployment part and the native rust packaging part of the codebase to never diverge again, which i think is a pretty good tradeoff because i'm the sole maintaineralso imo nix is a lot less annoying to write than toml, mostly because the latter doesnt even support spreading inline tables across multiple lines
(DIR) Post #B6yWfkjzRA691IMSOm by filmroellchen@chaos.social
0 likes, 0 repeats
@alina the very last point is about to change, TOML 2.0 supports this, and Cargo’s 2.0 support should land in stable soon
(DIR) Post #B6yWflde6EcLnuOu9I by alina@girldick.gay
0 likes, 0 repeats
@filmroellchen ohh that's neat
(DIR) Post #B6zu5pzopWgPJvKpQO by filmroellchen@chaos.social
0 likes, 0 repeats
@alina as for the rest of this; i guess so? i don’t really see the advantage since cargo’s dependency management is already vastly more accurate than in basically any language, so it feels like you just want a different syntax to write exactly the same thing.