Skip to content

Commit

Permalink
chore: bump twox-hash to v2.0 and make it an optional dependency
Browse files Browse the repository at this point in the history
This dependency is only needed when the "deterministic" feature is
enabled, used to generate deterministic BGP attribute set indexes.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Nov 24, 2024
1 parent f4ec2ef commit 4aab004
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ tonic = { version = "0.12", features = ["tls"] }
tonic-build = "0.12"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
twox-hash = "1.6"
yang3 = { version = "0.9", features = ["bundled"] }

[workspace.lints.rust]
Expand Down
5 changes: 3 additions & 2 deletions holo-bgp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ license.workspace = true
edition.workspace = true

[dependencies]
twox-hash = { version = "2.0", optional = true }

async-trait.workspace = true
bitflags.workspace = true
bytes.workspace = true
Expand All @@ -26,7 +28,6 @@ serde_json.workspace = true
serde_with.workspace = true
tokio.workspace = true
tracing.workspace = true
twox-hash.workspace = true
yang3.workspace = true

holo-northbound = { path = "../holo-northbound" }
Expand All @@ -47,7 +48,7 @@ workspace = true
[features]
default = []
testing = []
deterministic = []
deterministic = ["dep:twox-hash"]

[[bench]]
name = "msg_encoding"
Expand Down

0 comments on commit 4aab004

Please sign in to comment.