clash-rs: 0.7.5 -> 0.7.7

This commit is contained in:
Aaron Jheng 2025-04-05 20:31:11 +08:00
parent 8399dc7d28
commit 9557f3be47
No known key found for this signature in database
GPG key ID: F6A547A869D050A3
2 changed files with 23 additions and 6 deletions

View file

@ -5,19 +5,23 @@
protobuf,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "clash-rs";
version = "0.7.5";
version = "0.7.7";
src = fetchFromGitHub {
owner = "Watfaq";
repo = "clash-rs";
tag = "v${version}";
hash = "sha256-c4XF0F2ifTvbXTMGiJc1EaGTlS/X5ilZTpXe01uHs4Y=";
tag = "v${finalAttrs.version}";
hash = "sha256-x89sFBQ6bAIHvaRTCxqKKgFKo7PpquVze0R6VicwrJw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-ZSwNlknpZ0zKj+sklmO14Ey5DPZ0Wk9xxMiXwIiuRd0=";
cargoHash = "sha256-jfc0Rmt9eEN3ds5Rakj+IcJcUa28CbhiSu4AfqHurf0=";
patches = [
./unbounded-shifts.patch
];
nativeInstallCheckInputs = [
protobuf
@ -53,4 +57,4 @@ rustPlatform.buildRustPackage rec {
maintainers = with lib.maintainers; [ aaronjheng ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}
})

View file

@ -0,0 +1,13 @@
diff --git a/clash_lib/src/lib.rs b/clash_lib/src/lib.rs
index 6ada034..420e465 100644
--- a/clash_lib/src/lib.rs
+++ b/clash_lib/src/lib.rs
@@ -2,7 +2,7 @@
#![feature(ip)]
#![feature(sync_unsafe_cell)]
#![feature(let_chains)]
-#![cfg_attr(not(version("1.86.0")), feature(unbounded_shifts))]
+#![feature(unbounded_shifts)]
#[macro_use]
extern crate anyhow;