Skip to content

Commit

Permalink
Remove mock-instant dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseizinger committed Jan 6, 2025
1 parent 3dcc65c commit 9ff747e
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 139 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions boringtun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ default = []
device = ["socket2", "thiserror"]
jni-bindings = ["ffi-bindings", "jni"]
ffi-bindings = ["tracing-subscriber"]
# mocks std::time::Instant with mock_instant
mock-instant = ["mock_instant"]
mock-instant = [] # Deprecated.

[dependencies]
base64 = "0.22"
Expand All @@ -41,7 +40,6 @@ aead = "0.5.0-pre.2"
blake2 = "0.10"
hmac = "0.12"
jni = { version = "0.19.0", optional = true }
mock_instant = { version = "0.3", optional = true }
socket2 = { version = "0.5.8", features = ["all"], optional = true }
thiserror = { version = "1", optional = true }

Expand Down
3 changes: 0 additions & 3 deletions boringtun/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ pub mod ffi;
pub mod jni;
pub mod noise;

#[cfg(not(feature = "mock-instant"))]
pub(crate) mod sleepyinstant;

#[cfg(any(feature = "ffi-bindings", feature = "device"))]
pub(crate) mod serialization;

Expand Down
77 changes: 0 additions & 77 deletions boringtun/src/sleepyinstant/mod.rs

This file was deleted.

48 changes: 0 additions & 48 deletions boringtun/src/sleepyinstant/unix.rs

This file was deleted.

1 change: 0 additions & 1 deletion boringtun/src/sleepyinstant/windows.rs

This file was deleted.

0 comments on commit 9ff747e

Please sign in to comment.