diff --git a/Cargo.toml b/Cargo.toml index 05bc91caa1fd..48bc40cff5c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,5 +18,8 @@ publish = false # This specifies the MSRV rust-version = "1.65.0" +[workspace.dependencies] +asn1 = { version = "0.18.0", default-features = false } + [profile.release] overflow-checks = true diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index 96846d3427ce..cc31ddf29791 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -10,7 +10,7 @@ rust-version.workspace = true once_cell = "1" cfg-if = "1" pyo3 = { version = "0.22.6", features = ["abi3"] } -asn1 = { version = "0.18.0", default-features = false } +asn1.workspace = true cryptography-cffi = { path = "cryptography-cffi" } cryptography-keepalive = { path = "cryptography-keepalive" } cryptography-key-parsing = { path = "cryptography-key-parsing" } diff --git a/src/rust/cryptography-key-parsing/Cargo.toml b/src/rust/cryptography-key-parsing/Cargo.toml index 466ac72ce398..9b96b736c405 100644 --- a/src/rust/cryptography-key-parsing/Cargo.toml +++ b/src/rust/cryptography-key-parsing/Cargo.toml @@ -7,7 +7,7 @@ publish.workspace = true rust-version.workspace = true [dependencies] -asn1 = { version = "0.18.0", default-features = false } +asn1.workspace = true cfg-if = "1" openssl = "0.10.68" openssl-sys = "0.9.104" diff --git a/src/rust/cryptography-x509-verification/Cargo.toml b/src/rust/cryptography-x509-verification/Cargo.toml index c5380a2e125d..2cc2ff48829c 100644 --- a/src/rust/cryptography-x509-verification/Cargo.toml +++ b/src/rust/cryptography-x509-verification/Cargo.toml @@ -7,7 +7,7 @@ publish.workspace = true rust-version.workspace = true [dependencies] -asn1 = { version = "0.18.0", default-features = false } +asn1.workspace = true cryptography-x509 = { path = "../cryptography-x509" } cryptography-key-parsing = { path = "../cryptography-key-parsing" } once_cell = "1" diff --git a/src/rust/cryptography-x509/Cargo.toml b/src/rust/cryptography-x509/Cargo.toml index 8ed2c5677ed8..03f2c260890e 100644 --- a/src/rust/cryptography-x509/Cargo.toml +++ b/src/rust/cryptography-x509/Cargo.toml @@ -8,4 +8,4 @@ publish = false rust-version = "1.65.0" [dependencies] -asn1 = { version = "0.18.0", default-features = false } +asn1.workspace = true