Merge pull request #310670 from gepbird/cargo-geiger-fix

cargo-geiger: 0.11.6 -> 0.11.7, unbreak
This commit is contained in:
Weijia Wang 2024-05-11 10:48:58 +02:00 committed by GitHub
commit e0fb422a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 7 deletions

View File

@ -0,0 +1,12 @@
diff --git a/cargo-geiger/src/lib.rs b/cargo-geiger/src/lib.rs
index cc08146..d220ad9 100644
--- a/cargo-geiger/src/lib.rs
+++ b/cargo-geiger/src/lib.rs
@@ -5,7 +5,6 @@
#![deny(clippy::cargo)]
#![deny(clippy::doc_markdown)]
#![forbid(unsafe_code)]
-#![deny(warnings)]
/// Argument parsing
pub mod args;

View File

@ -12,15 +12,19 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-geiger";
version = "0.11.6";
version = "0.11.7";
src = fetchFromGitHub {
owner = "rust-secure-code";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256-rGZJyCWGk2RUr52ICp4dVER3JMBrnLdOMusRm/GG2PE=";
rev = "cargo-geiger@v${version}";
hash = "sha256-/5yuayqneZV6aVQ6YFgqNS2XY3W6yETRQ0kE5ovc7p8=";
};
cargoHash = "sha256-B6Ka35y2fJEDVd891P60TNppr5HGFnzVjLhhfoFCYUA=";
cargoHash = "sha256-lhojo3dhsM9y1SxpVMH93yv+JeNfTL7VLsbTp9ErgIQ=";
patches = [
./allow-warnings.patch
];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation Security libiconv curl ]);
@ -30,12 +34,18 @@ rustPlatform.buildRustPackage rec {
# skip tests with networking or other failures
checkFlags = [
"--skip serialize_test1_quick_report"
"--skip serialize_test2_quick_report"
"--skip serialize_test3_quick_report"
"--skip serialize_test4_quick_report"
"--skip serialize_test6_quick_report"
"--skip serialize_test7_quick_report"
"--skip serialize_test1_report"
"--skip serialize_test2_report"
"--skip serialize_test3_report"
"--skip serialize_test4_report"
"--skip serialize_test6_report"
"--skip serialize_test7_report"
# multiple test cases that time-out or cause memory leaks
"--skip test_package"
"--skip test_package_update_readme::case_2"
@ -45,7 +55,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
homepage = "https://github.com/rust-secure-code/cargo-geiger";
changelog = "https://github.com/rust-secure-code/cargo-geiger/blob/${pname}-${version}/CHANGELOG.md";
changelog = "https://github.com/rust-secure-code/cargo-geiger/blob/cargo-geiger-${version}/CHANGELOG.md";
description = "Detects usage of unsafe Rust in a Rust crate and its dependencies";
mainProgram = "cargo-geiger";
longDescription = ''
@ -55,6 +65,6 @@ rustPlatform.buildRustPackage rec {
code is appropriate.
'';
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ evanjs jk matthiasbeyer ];
maintainers = with maintainers; [ evanjs gepbird jk matthiasbeyer ];
};
}

View File

@ -16727,7 +16727,6 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
cargo-geiger = callPackage ../development/tools/rust/cargo-geiger { };
cargo-hf2 = callPackage ../development/tools/rust/cargo-hf2 {
inherit (darwin.apple_sdk.frameworks) AppKit;