Skip to content

Commit

Permalink
chore: remove mock-instant dependency (#52)
Browse files Browse the repository at this point in the history
With #45, the need for mocking `Instant` in order to test time-related
functionality has been obsoleted. All functions simply take `Instant` as
a parameter now. In order to preserve backwards-compatibility, an empty
feature has been added that replaces the optional dependency.
  • Loading branch information
thomaseizinger authored Jan 9, 2025
1 parent 4270817 commit 7f347f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 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.

2 changes: 1 addition & 1 deletion boringtun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ device = ["socket2", "thiserror"]
jni-bindings = ["ffi-bindings", "jni"]
ffi-bindings = ["tracing-subscriber"]
mock-instant = [] # Deprecated.
mock_instant = [] # Deprecated.

[dependencies]
base64 = "0.22"
Expand All @@ -40,7 +41,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 } # Deprecated.
socket2 = { version = "0.5.8", features = ["all"], optional = true }
thiserror = { version = "1", optional = true }

Expand Down

0 comments on commit 7f347f3

Please sign in to comment.