diff --git a/Cargo.toml b/Cargo.toml index f3eb5782..788b97d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/holo-bgp/Cargo.toml b/holo-bgp/Cargo.toml index ad73f2be..a82f15cf 100644 --- a/holo-bgp/Cargo.toml +++ b/holo-bgp/Cargo.toml @@ -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 @@ -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" } @@ -47,7 +48,7 @@ workspace = true [features] default = [] testing = [] -deterministic = [] +deterministic = ["dep:twox-hash"] [[bench]] name = "msg_encoding"