From 02dcfdcc40c4f0c19e9fc34bf8fe66f0d1883df9 Mon Sep 17 00:00:00 2001 From: Hongxu Xu Date: Thu, 6 Nov 2025 22:31:19 -0500 Subject: [PATCH] chore(native): remove unused deps (#13854) Identified some unused dependencies and refactored them. --- Cargo.lock | 151 +----------------------- packages/common/y-octo/core/Cargo.toml | 2 - packages/common/y-octo/utils/Cargo.toml | 1 - 3 files changed, 2 insertions(+), 152 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3a57ff1b72..e37bcdbc39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -442,12 +442,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "atomic_refcell" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41e67cd8309bbd06cd603a9e693a784ac2e5d1e955f11286e355089fcab3047c" - [[package]] name = "auto_enums" version = "0.8.7" @@ -584,18 +578,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "bitvec" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - [[package]] name = "block-buffer" version = "0.10.4" @@ -1612,12 +1594,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "funty" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" - [[package]] name = "futf" version = "0.1.5" @@ -1724,19 +1700,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", -] - [[package]] name = "getrandom" version = "0.2.16" @@ -1834,10 +1797,6 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", - "allocator-api2", -] [[package]] name = "hashbrown" @@ -2255,16 +2214,6 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "lasso" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e14eda50a3494b3bf7b9ce51c52434a761e383d7238ce1dd5dcec2fbc13e9fb" -dependencies = [ - "dashmap", - "hashbrown 0.14.5", -] - [[package]] name = "lazy_static" version = "1.5.0" @@ -3280,25 +3229,6 @@ version = "5.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" -[[package]] -name = "radium" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" - -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] - [[package]] name = "rand" version = "0.8.5" @@ -3320,16 +3250,6 @@ dependencies = [ "rand_core 0.9.3", ] -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", -] - [[package]] name = "rand_chacha" version = "0.3.1" @@ -3350,15 +3270,6 @@ dependencies = [ "rand_core 0.9.3", ] -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - [[package]] name = "rand_core" version = "0.6.4" @@ -3387,15 +3298,6 @@ dependencies = [ "rand 0.9.1", ] -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - [[package]] name = "rand_xorshift" version = "0.3.0" @@ -4477,12 +4379,6 @@ dependencies = [ "syn 2.0.101", ] -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - [[package]] name = "tempfile" version = "3.20.0" @@ -5198,12 +5094,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -5808,15 +5698,6 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" -[[package]] -name = "wyz" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" -dependencies = [ - "tap", -] - [[package]] name = "xml5ever" version = "0.17.0" @@ -5842,10 +5723,8 @@ dependencies = [ "arbitrary", "assert-json-diff", "async-lock", - "bitvec", "byteorder", "criterion", - "lasso", "lib0", "log", "loom", @@ -5862,7 +5741,7 @@ dependencies = [ "serde_json", "smol_str", "thiserror 2.0.12", - "yrs 0.23.4", + "yrs", ] [[package]] @@ -5892,18 +5771,7 @@ dependencies = [ "rand_chacha 0.9.0", "regex", "y-octo", - "y-sync", - "yrs 0.23.4", -] - -[[package]] -name = "y-sync" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e3675a497cde881a71e7e5c2ae1d087dfc7733ddece9b24a9a61408e969d3b" -dependencies = [ - "thiserror 1.0.69", - "yrs 0.17.4", + "yrs", ] [[package]] @@ -5930,21 +5798,6 @@ dependencies = [ "synstructure", ] -[[package]] -name = "yrs" -version = "0.17.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4830316bfee4bec0044fe34a001cda783506d5c4c0852f8433c6041dfbfce51" -dependencies = [ - "atomic_refcell", - "rand 0.7.3", - "serde", - "serde_json", - "smallstr", - "smallvec", - "thiserror 1.0.69", -] - [[package]] name = "yrs" version = "0.23.4" diff --git a/packages/common/y-octo/core/Cargo.toml b/packages/common/y-octo/core/Cargo.toml index 6dc343e5c9..c4ac1e9589 100644 --- a/packages/common/y-octo/core/Cargo.toml +++ b/packages/common/y-octo/core/Cargo.toml @@ -20,9 +20,7 @@ version = "0.0.1" [dependencies] ahash = { workspace = true } -bitvec = { workspace = true } byteorder = { workspace = true } -lasso = { workspace = true } log = { workspace = true } nanoid = { workspace = true } nom = { workspace = true } diff --git a/packages/common/y-octo/utils/Cargo.toml b/packages/common/y-octo/utils/Cargo.toml index 55292d0899..b1608b8d1e 100644 --- a/packages/common/y-octo/utils/Cargo.toml +++ b/packages/common/y-octo/utils/Cargo.toml @@ -22,7 +22,6 @@ rand = { workspace = true } rand_chacha = { workspace = true } regex = { workspace = true, optional = true } y-octo = { workspace = true } -y-sync = { workspace = true } yrs = { workspace = true } [dev-dependencies]