From 2b1c366643623dfc41122c48db1f8e894d7a8aca Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 13 Feb 2025 01:29:54 +0800 Subject: [PATCH] remove some tokio feature --- Cargo.lock | 49 --------------------------------------------- ica-rs/Cargo.toml | 2 +- ica-rs/src/main.rs | 1 + ica-rs/src/wasms.rs | 1 + 4 files changed, 3 insertions(+), 50 deletions(-) create mode 100644 ica-rs/src/wasms.rs diff --git a/Cargo.lock b/Cargo.lock index abfc083..4bdf268 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -927,16 +927,6 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" -[[package]] -name = "lock_api" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" -dependencies = [ - "autocfg", - "scopeguard", -] - [[package]] name = "log" version = "0.4.25" @@ -1111,29 +1101,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "parking_lot" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-targets", -] - [[package]] name = "percent-encoding" version = "2.3.1" @@ -1300,15 +1267,6 @@ dependencies = [ "getrandom 0.2.15", ] -[[package]] -name = "redox_syscall" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" -dependencies = [ - "bitflags", -] - [[package]] name = "reqwest" version = "0.12.12" @@ -1507,12 +1465,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - [[package]] name = "security-framework" version = "2.11.1" @@ -1856,7 +1808,6 @@ dependencies = [ "bytes", "libc", "mio", - "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2", diff --git a/ica-rs/Cargo.toml b/ica-rs/Cargo.toml index c9fb126..7bb9eae 100644 --- a/ica-rs/Cargo.toml +++ b/ica-rs/Cargo.toml @@ -40,7 +40,7 @@ toml_edit = "0.22" colored = "3.0" # runtime -tokio = { version = "1.43", features = ["full"] } +tokio = { version = "1.43", features = ["rt-multi-thread", "time", "signal", "macros"] } futures-util = "0.3" pyo3 = { version = "0.23", features = ["experimental-async", "py-clone"] } anyhow = { version = "1.0", features = ["backtrace"] } diff --git a/ica-rs/src/main.rs b/ica-rs/src/main.rs index 6d38423..db0aa8f 100644 --- a/ica-rs/src/main.rs +++ b/ica-rs/src/main.rs @@ -9,6 +9,7 @@ mod data_struct; mod error; mod py; mod status; +mod wasms; #[cfg(feature = "ica")] mod ica; diff --git a/ica-rs/src/wasms.rs b/ica-rs/src/wasms.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/ica-rs/src/wasms.rs @@ -0,0 +1 @@ +