Commit 35e4b4e3 authored by kyehn's avatar kyehn
Browse files

clash-rs: 0.9.0 -> 0.9.1

parent d7f82966
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1462,7 +1462,7 @@
@@ -1250,7 +1250,7 @@
  "sha2",
  "shadowquic",
  "shadowsocks",
@@ -8,8 +8,8 @@
+ "smoltcp 0.12.0",
  "socket2 0.6.0",
  "tempfile",
  "thiserror 2.0.15",
@@ -4439,7 +4439,7 @@
  "thiserror 2.0.17",
@@ -4096,7 +4096,7 @@
  "etherparse 0.16.0",
  "futures",
  "rand 0.8.5",
@@ -18,7 +18,7 @@
  "spin 0.9.8",
  "tokio",
  "tokio-util",
@@ -6892,20 +6892,6 @@
@@ -6487,20 +6487,6 @@
 ]
 
 [[package]]
@@ -39,7 +39,7 @@
 name = "socket2"
 version = "0.4.10"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -9231,7 +9217,7 @@
@@ -8792,7 +8778,7 @@
  "netstack-lwip",
  "netstack-smoltcp",
  "rand 0.9.2",
+6 −8
Original line number Diff line number Diff line
@@ -10,16 +10,16 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "clash-rs";
  version = "0.9.0";
  version = "0.9.1";

  src = fetchFromGitHub {
    owner = "Watfaq";
    repo = "clash-rs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-OwoDvcGpuU2x6O3+rBJSXGS2VoeFt/oVgFWUaCUyC8E=";
    hash = "sha256-asD7veAYdIF5biCbSXYvAyW/qBra3tvON9TQYCw6nB8=";
  };

  cargoHash = "sha256-HKW6bOkHkBINwA2tgaKHEozKzT4n54roj6W989JUoAQ=";
  cargoHash = "sha256-9zCQKxkjiskkBGxfnq2ANpqWobs+UJ5qCsbME2Z7GY4=";

  cargoPatches = [ ./Cargo.patch ];

@@ -46,13 +46,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
  env = {
    # requires features: sync_unsafe_cell, unbounded_shifts, let_chains, ip
    RUSTC_BOOTSTRAP = 1;
    RUSTFLAGS = "--cfg tokio_unstable";
    NIX_CFLAGS_COMPILE = "-Wno-error";
  };

  buildFeatures = [
    "shadowsocks"
    "tuic"
    "onion"
  ];
  buildFeatures = [ "plus" ];

  doCheck = false; # test failed

+5 −5
Original line number Diff line number Diff line
--- a/clash-lib/src/lib.rs
+++ b/clash-lib/src/lib.rs
@@ -4,7 +4,7 @@
 #![feature(let_chains)]
@@ -3,7 +3,7 @@
 #![feature(sync_unsafe_cell)]
 #![feature(lazy_get)]
 #![feature(duration_millis_float)]
-#![cfg_attr(not(version("1.87.0")), feature(unbounded_shifts))]
+#![feature(unbounded_shifts)]
 #![cfg_attr(not(version("1.88.0")), feature(let_chains))]
 
 #[macro_use]
 extern crate anyhow;
 use crate::{