nix-community / crate2nix

rebuild only changed crates in CI with crate2nix and nix
https://nix-community.github.io/crate2nix/
Apache License 2.0
382 stars 89 forks source link

Add `crateDescription` to generated crate definition #356

Open bradzacher opened 4 months ago

bradzacher commented 4 months ago

crateDescription is used by buildRustCrate to populate the CARGO_PKG_DESCRIPTION env var (ref).

This env var is used by tools like clap to automatically populate the description of a rust binary from the Cargo.toml (ref). We should include the description to ensure that such usages can work as intended.