Skip to content

Commit 70fb7e1

Browse files
committed
chore: tweaks to exports
1 parent 8a51e31 commit 70fb7e1

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

crates/bitwarden-threading/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ keywords.workspace = true
1111

1212
[features]
1313
time = ["gloo-timers"]
14-
cancellation = ["tokio-util"]
1514

1615
[dependencies]
1716
bitwarden-error = { workspace = true }
@@ -24,7 +23,7 @@ tokio = { features = ["sync", "time", "rt"], workspace = true }
2423
[target.'cfg(target_arch="wasm32")'.dependencies]
2524
gloo-timers = { version = "0.3.0", features = ["futures"], optional = true }
2625
js-sys = { workspace = true }
27-
tokio-util = { version = "0.7.15", optional = true }
26+
tokio-util = { version = "0.7.15" }
2827
tsify-next = { workspace = true }
2928
wasm-bindgen = { workspace = true }
3029
wasm-bindgen-futures = { workspace = true }
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pub mod cancellation_token;
22
mod thread_bound_runner;
3-
mod time;
3+
pub mod time;
44

55
pub use thread_bound_runner::ThreadBoundRunner;
6-
pub use time::sleep;

crates/bitwarden-threading/tests/cancellation_token/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use bitwarden_threading::cancellation_token::{
22
wasm::{AbortController, AbortControllerExt, CancellationTokenExt},
33
CancellationToken,
44
};
5-
use bitwarden_threading::sleep;
5+
use bitwarden_threading::time::sleep;
66
use std::time::Duration;
77
use wasm_bindgen::externref_heap_live_count;
88
use wasm_bindgen_test::wasm_bindgen_test;

0 commit comments

Comments
 (0)