From 6d60f6d2cf004c14b566892c2e7e0715c8a85285 Mon Sep 17 00:00:00 2001 From: Tamish Dahiya Date: Fri, 24 Jul 2026 15:54:59 +0530 Subject: [PATCH 1/2] Update all crates inherit version from version.workspace --- Cargo.toml | 5 +++-- cli/Cargo.toml | 4 ++-- crypto/base64/Cargo.toml | 4 ++-- crypto/core-test-framework/Cargo.toml | 4 ++-- crypto/core/Cargo.toml | 4 ++-- crypto/factory/Cargo.toml | 2 +- crypto/hex/Cargo.toml | 4 ++-- crypto/hkdf/Cargo.toml | 4 ++-- crypto/hmac/Cargo.toml | 2 +- crypto/mldsa-lowmemory/Cargo.toml | 4 ++-- crypto/mldsa/Cargo.toml | 4 ++-- crypto/mlkem-lowmemory/Cargo.toml | 4 ++-- crypto/mlkem/Cargo.toml | 4 ++-- crypto/rng/Cargo.toml | 4 ++-- crypto/sha2/Cargo.toml | 2 +- crypto/sha3/Cargo.toml | 2 +- crypto/utils/Cargo.toml | 2 +- mem_usage_benches/Cargo.toml | 4 ++-- 18 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6e2ed3f..d15af24 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ members = ["cli", "crypto/*", "mem_usage_benches"] [workspace.package] edition = "2024" +version = "0.1.2" [workspace.dependencies] @@ -36,7 +37,7 @@ strip = "debuginfo" # libbouncycastle [package] name = "bouncycastle" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -52,4 +53,4 @@ bouncycastle-mlkem.workspace = true bouncycastle-mlkem-lowmemory.workspace = true bouncycastle-rng.workspace = true bouncycastle-sha2.workspace = true -bouncycastle-sha3.workspace = true \ No newline at end of file +bouncycastle-sha3.workspace = true diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 489634a..2ea124e 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -10,4 +10,4 @@ bouncycastle.workspace = true [[bin]] name = "bc-rust" -path = "src/main.rs" \ No newline at end of file +path = "src/main.rs" diff --git a/crypto/base64/Cargo.toml b/crypto/base64/Cargo.toml index 7059b7c..a61ca6d 100644 --- a/crypto/base64/Cargo.toml +++ b/crypto/base64/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-base64" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -13,4 +13,4 @@ bouncycastle-rng.workspace = true [[bench]] name = "base64_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/core-test-framework/Cargo.toml b/crypto/core-test-framework/Cargo.toml index b4aca48..69447b6 100644 --- a/crypto/core-test-framework/Cargo.toml +++ b/crypto/core-test-framework/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "bouncycastle-core-test-framework" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] bouncycastle-core.workspace = true -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/crypto/core/Cargo.toml b/crypto/core/Cargo.toml index 784d3fe..6415376 100644 --- a/crypto/core/Cargo.toml +++ b/crypto/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-core" -version = "0.1.2" +version.workspace = true edition.workspace = true [features] @@ -14,4 +14,4 @@ std = [] bouncycastle-utils.workspace = true [dev-dependencies] -bouncycastle-rng.workspace = true \ No newline at end of file +bouncycastle-rng.workspace = true diff --git a/crypto/factory/Cargo.toml b/crypto/factory/Cargo.toml index 0f31c93..d3060eb 100644 --- a/crypto/factory/Cargo.toml +++ b/crypto/factory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-factory" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] diff --git a/crypto/hex/Cargo.toml b/crypto/hex/Cargo.toml index 8d88707..3dcb7e1 100644 --- a/crypto/hex/Cargo.toml +++ b/crypto/hex/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-hex" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -11,4 +11,4 @@ criterion.workspace = true [[bench]] name = "hex_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/hkdf/Cargo.toml b/crypto/hkdf/Cargo.toml index 1d8ca45..12319fa 100644 --- a/crypto/hkdf/Cargo.toml +++ b/crypto/hkdf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-hkdf" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -17,4 +17,4 @@ bouncycastle-hex.workspace = true [[bench]] name = "hkdf_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/hmac/Cargo.toml b/crypto/hmac/Cargo.toml index f1e4377..ebb1407 100644 --- a/crypto/hmac/Cargo.toml +++ b/crypto/hmac/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-hmac" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] diff --git a/crypto/mldsa-lowmemory/Cargo.toml b/crypto/mldsa-lowmemory/Cargo.toml index 83ccce7..60eeadb 100644 --- a/crypto/mldsa-lowmemory/Cargo.toml +++ b/crypto/mldsa-lowmemory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-mldsa-lowmemory" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -19,4 +19,4 @@ serde_json = "1.0" [[bench]] name = "mldsa_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/mldsa/Cargo.toml b/crypto/mldsa/Cargo.toml index cddc8c6..6071b76 100644 --- a/crypto/mldsa/Cargo.toml +++ b/crypto/mldsa/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-mldsa" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -19,4 +19,4 @@ serde_json = "1.0" [[bench]] name = "mldsa_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/mlkem-lowmemory/Cargo.toml b/crypto/mlkem-lowmemory/Cargo.toml index 8ccb067..6edb19a 100644 --- a/crypto/mlkem-lowmemory/Cargo.toml +++ b/crypto/mlkem-lowmemory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-mlkem-lowmemory" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -18,4 +18,4 @@ serde_json = "1.0" [[bench]] name = "mlkem_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/mlkem/Cargo.toml b/crypto/mlkem/Cargo.toml index 8235352..2e0d26e 100644 --- a/crypto/mlkem/Cargo.toml +++ b/crypto/mlkem/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-mlkem" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -18,4 +18,4 @@ serde_json = "1.0" [[bench]] name = "mlkem_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/rng/Cargo.toml b/crypto/rng/Cargo.toml index 69d3a6e..48e1a3c 100644 --- a/crypto/rng/Cargo.toml +++ b/crypto/rng/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-rng" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -17,4 +17,4 @@ criterion.workspace = true [[bench]] name = "hash_drbg_benches" -harness = false \ No newline at end of file +harness = false diff --git a/crypto/sha2/Cargo.toml b/crypto/sha2/Cargo.toml index 6de8662..7ff2e03 100644 --- a/crypto/sha2/Cargo.toml +++ b/crypto/sha2/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-sha2" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] diff --git a/crypto/sha3/Cargo.toml b/crypto/sha3/Cargo.toml index 0050958..0465fad 100644 --- a/crypto/sha3/Cargo.toml +++ b/crypto/sha3/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-sha3" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] diff --git a/crypto/utils/Cargo.toml b/crypto/utils/Cargo.toml index 0616cdd..a23ce1a 100644 --- a/crypto/utils/Cargo.toml +++ b/crypto/utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bouncycastle-utils" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] diff --git a/mem_usage_benches/Cargo.toml b/mem_usage_benches/Cargo.toml index 9ad569c..53c35f9 100644 --- a/mem_usage_benches/Cargo.toml +++ b/mem_usage_benches/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mem_usage_benches" -version = "0.1.2" +version.workspace = true edition.workspace = true [dependencies] @@ -13,4 +13,4 @@ path = "bench_mldsa_mem_usage.rs" [[bin]] name = "bench_mlkem_mem_usage" -path = "bench_mlkem_mem_usage.rs" \ No newline at end of file +path = "bench_mlkem_mem_usage.rs" From 296a874af0e0109e17e0b485b03bdcf22f94fe65 Mon Sep 17 00:00:00 2001 From: Tamish Dahiya Date: Fri, 24 Jul 2026 18:00:09 +0530 Subject: [PATCH 2/2] Deduplicate internal dependencies version in core cargo.toml --- Cargo.toml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d15af24..f28bec9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,22 +8,22 @@ version = "0.1.2" [workspace.dependencies] # *** Internal Dependencies *** -bouncycastle = { path = "./", version = "0.1.2" } -bouncycastle-base64 = { path = "./crypto/base64", version = "0.1.2" } -bouncycastle-core = { path = "crypto/core", version = "0.1.2" } -bouncycastle-core-test-framework = { path = "./crypto/core-test-framework", version = "0.1.2" } -bouncycastle-factory = { path = "./crypto/factory", version = "0.1.2" } -bouncycastle-hex = { path = "./crypto/hex", version = "0.1.2" } -bouncycastle-hkdf = { path = "./crypto/hkdf", version = "0.1.2" } -bouncycastle-hmac = { path = "./crypto/hmac", version = "0.1.2" } -bouncycastle-mlkem = { path = "./crypto/mlkem", version = "0.1.2" } -bouncycastle-mlkem-lowmemory = { path = "./crypto/mlkem-lowmemory", version = "0.1.2" } -bouncycastle-mldsa = { path = "./crypto/mldsa", version = "0.1.2" } -bouncycastle-mldsa-lowmemory = { path = "./crypto/mldsa-lowmemory", version = "0.1.2" } -bouncycastle-rng = { path = "./crypto/rng", version = "0.1.2" } -bouncycastle-sha2 = { path = "./crypto/sha2", version = "0.1.2" } -bouncycastle-sha3 = { path = "./crypto/sha3", version = "0.1.2" } -bouncycastle-utils = { path = "./crypto/utils", version = "0.1.2" } +bouncycastle = { path = "./" } +bouncycastle-base64 = { path = "./crypto/base64" } +bouncycastle-core = { path = "crypto/core" } +bouncycastle-core-test-framework = { path = "./crypto/core-test-framework" } +bouncycastle-factory = { path = "./crypto/factory" } +bouncycastle-hex = { path = "./crypto/hex" } +bouncycastle-hkdf = { path = "./crypto/hkdf" } +bouncycastle-hmac = { path = "./crypto/hmac" } +bouncycastle-mlkem = { path = "./crypto/mlkem" } +bouncycastle-mlkem-lowmemory = { path = "./crypto/mlkem-lowmemory" } +bouncycastle-mldsa = { path = "./crypto/mldsa" } +bouncycastle-mldsa-lowmemory = { path = "./crypto/mldsa-lowmemory" } +bouncycastle-rng = { path = "./crypto/rng" } +bouncycastle-sha2 = { path = "./crypto/sha2" } +bouncycastle-sha3 = { path = "./crypto/sha3" } +bouncycastle-utils = { path = "./crypto/utils" } # *** External Dependencies ***