12 rustPlatform.buildRustPackage rec {
13 pname = "cargo-unused-features";
17 inherit pname version;
18 hash = "sha256-gdwIbbQDw/DgBV9zY2Rk/oWjPv1SS/+oFnocsMo2Axo=";
21 cargoHash = "sha256-K9I7Eg43BS2SKq5zZ3eZrMkmuHAx09OX240sH0eGs+k=";
32 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33 darwin.apple_sdk.frameworks.CoreFoundation
34 darwin.apple_sdk.frameworks.Security
38 LIBGIT2_NO_VENDOR = 1;
42 description = "Tool to find potential unused enabled feature flags and prune them";
43 homepage = "https://github.com/timonpost/cargo-unused-features";
44 license = licenses.mit;
45 maintainers = with maintainers; [ figsoda matthiasbeyer ];
46 mainProgram = "unused-features";