Skip to content

Commit 8a622d3

Browse files
committed
chore: remove unused deps
1 parent 03736a2 commit 8a622d3

File tree

15 files changed

+37
-50
lines changed

15 files changed

+37
-50
lines changed

Cargo.lock

Lines changed: 0 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

collab/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,14 @@ arc-swap.workspace = true
2323
bincode = "1.3.3"
2424
serde_repr = "0.1"
2525
chrono = "0.4.22"
26-
unicode-segmentation = "1.10.1"
2726
lazy_static = "1.4.0"
2827
fastrand = "2.1.0"
2928
parking_lot = "0.12"
3029
prost = "0.13.3"
3130
futures = "0.3"
3231
futures-lite.workspace = true
33-
tokio-retry = "0.3"
34-
similar = "2.2.1"
3532
rand = { version = "0.8", optional = true }
36-
smallvec = { version = "1.10", features = ["write", "union", "const_generics", "const_new"] }
33+
smallvec = { version = "1.10", features = ["write", "union", "const_generics", "const_new"], optional = true }
3734
nanoid = "0.4.0"
3835
markdown = "1.0.0-alpha.21"
3936
dashmap = "5"
@@ -51,8 +48,6 @@ sha2 = "0.10.8"
5148
base64 = "0.22.1"
5249
iana-time-zone = "0.1.61"
5350
walkdir = "2.5.0"
54-
fxhash = "0.2.1"
55-
hex = "0.4.3"
5651
async_zip = { version = "0.0.17", features = ["full"] }
5752
async-recursion = "1.1"
5853
sanitize-filename = "0.5.0"
@@ -74,13 +69,18 @@ tokio-test = "0.4"
7469

7570
[features]
7671
default = []
77-
plugins = ["dep:rocksdb"]
72+
plugins = ["dep:rocksdb", "dep:smallvec"]
7873
verbose_log = []
7974
trace_transact = []
8075
lock_timeout = []
8176
rwlock_reason = []
8277
import_csv = []
8378

79+
[[test]]
80+
name = "plugins"
81+
path = "tests/plugins/main.rs"
82+
required-features = ["plugins"]
83+
8484
[build-dependencies]
8585
prost-build = "0.12"
8686
protoc-bin-vendored = "3.0.0"

collab/src/plugins/local_storage/kv/db.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use std::fmt::Debug;
24
use std::io::Write;
35
use std::ops::RangeBounds;

collab/src/plugins/local_storage/kv/doc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use crate::error::CollabError;
24
use crate::plugins::local_storage::kv::keys::*;
35
use crate::plugins::local_storage::kv::snapshot::SnapshotAction;

collab/src/plugins/local_storage/kv/keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use std::io::Write;
24
use std::ops::Deref;
35

collab/src/plugins/local_storage/kv/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
pub use db::*;
24
pub use range::*;
35

collab/tests/plugins/disk/delete_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use crate::disk::script::CollabPersistenceTest;
24
use collab::plugins::local_storage::CollabPersistenceConfig;
35

collab/tests/plugins/disk/insert_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use crate::disk::script::{CollabPersistenceTest, disk_plugin_with_db};
24
use assert_json_diff::assert_json_eq;
35
use uuid::Uuid;

collab/tests/plugins/disk/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
#[cfg(feature = "plugins")]
12
mod delete_test;
3+
#[cfg(feature = "plugins")]
24
mod insert_test;
5+
#[cfg(feature = "plugins")]
36
mod range_test;
7+
#[cfg(feature = "plugins")]
48
mod restore_test;
9+
#[cfg(feature = "plugins")]
510
mod script;
11+
#[cfg(feature = "plugins")]
612
mod undo_test;
13+
#[cfg(feature = "plugins")]
714
mod util;

collab/tests/plugins/disk/range_test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "plugins")]
2+
13
use std::ops::{Deref, Range, RangeTo};
24
use std::sync::Arc;
35
use std::thread;

0 commit comments

Comments
 (0)