Hey, I'm in a situation where I'd like to pass custom buildRustCrate configuration for all of my crates. I saw that there's a crateConfig option at the top level of the generated Cargo.nix, I can't seem to find any documentation for it, is it a deprecated field?
Hey, I'm in a situation where I'd like to pass custom
buildRustCrate
configuration for all of my crates. I saw that there's acrateConfig
option at the top level of the generatedCargo.nix
, I can't seem to find any documentation for it, is it a deprecated field?https://github.com/nix-community/crate2nix/blob/e494b56b7445ba59ef049bcfdc889f5c558768d4/crate2nix/templates/Cargo.nix.tera#L24-L27
It seems like a useful configuration option. I was thinking it could be called
defaultCrateConfig
and override the per-cratecrateConfig
here:https://github.com/nix-community/crate2nix/blob/e494b56b7445ba59ef049bcfdc889f5c558768d4/crate2nix/templates/nix/crate2nix/default.nix#L289-L290
With something like this: