Merge pull request #200713 from figsoda/cargo-unused-features
cargo-unused-features: init at 0.1.7
This commit is contained in:
commit
92d1d921d2
2 changed files with 43 additions and 0 deletions
|
@ -0,0 +1,42 @@
|
||||||
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchCrate
|
||||||
|
, curl
|
||||||
|
, pkg-config
|
||||||
|
, openssl
|
||||||
|
, stdenv
|
||||||
|
, darwin
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "cargo-unused-features";
|
||||||
|
version = "0.1.7";
|
||||||
|
|
||||||
|
src = fetchCrate {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-PdSR2nZbRzV2Kg2LNEpI7/Us+r8Gy6XLdUzMLei5r8c=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-Y0U5Qzj+S7zoXWemcSfMn0YS7wCAPj+ER0jao+f2B28=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
curl.dev
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
curl
|
||||||
|
openssl
|
||||||
|
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
|
CoreFoundation
|
||||||
|
Security
|
||||||
|
]);
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A tool to find potential unused enabled feature flags and prune them";
|
||||||
|
homepage = "https://github.com/timonpost/cargo-unused-features";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ figsoda ];
|
||||||
|
mainProgram = "unused-features";
|
||||||
|
};
|
||||||
|
}
|
|
@ -15168,6 +15168,7 @@ with pkgs;
|
||||||
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
|
||||||
};
|
};
|
||||||
cargo-ui = darwin.apple_sdk_11_0.callPackage ../development/tools/rust/cargo-ui { };
|
cargo-ui = darwin.apple_sdk_11_0.callPackage ../development/tools/rust/cargo-ui { };
|
||||||
|
cargo-unused-features = callPackage ../development/tools/rust/cargo-unused-features { };
|
||||||
|
|
||||||
cargo-tauri = callPackage ../development/tools/rust/cargo-tauri { };
|
cargo-tauri = callPackage ../development/tools/rust/cargo-tauri { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue