Skip to content

Commit ae778bc

Browse files
committed
feat(rust): unified rust-aes feature into rust-crypto
1 parent 3e95cae commit ae778bc

11 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/release-draft-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ jobs:
396396
397397
if [[ '${{ matrix.job.use-cross }}' == 'true' ]]; then
398398
# When building using cross use rust crypto (slower) since the cross image doesn't have an up-to-date libclang
399-
cross build --target ${{ matrix.job.target }} -p ockam_rust_elixir_nifs --release --no-default-features -F rust-aes
399+
cross build --target ${{ matrix.job.target }} -p ockam_rust_elixir_nifs --release --no-default-features -F rust-crypto
400400
exit
401401
fi
402402

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

implementations/rust/ockam/ockam/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ OCKAM_XX_25519_AES256_GCM_SHA256 = ["ockam_identity/OCKAM_XX_25519_AES256_GCM_SH
3838
OCKAM_XX_25519_AES128_GCM_SHA256 = ["ockam_identity/OCKAM_XX_25519_AES128_GCM_SHA256"]
3939
OCKAM_XX_25519_ChaChaPolyBLAKE2s = ["ockam_identity/OCKAM_XX_25519_ChaChaPolyBLAKE2s"]
4040
aws-lc = ["ockam_vault?/aws-lc", "ockam_transport_tcp?/aws-lc", "ockam_identity/aws-lc"]
41-
rust-crypto = ["ockam_vault?/rust-aes", "ockam_transport_tcp?/ring", "ockam_identity/rust-aes"]
41+
rust-crypto = ["ockam_vault?/rust-crypto", "ockam_transport_tcp?/ring", "ockam_identity/rust-crypto"]
4242

4343
# Feature (enabled by default): "std" enables functionality expected to
4444
# be available on a standard platform.

implementations/rust/ockam/ockam_abac/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ tracing = { version = "0.1", default-features = false, features = ["attributes"]
5757
wast = { version = "206.0.0", default-features = false, optional = true }
5858

5959
[dev-dependencies]
60+
ockam_vault = { path = "../ockam_vault", default-features = false, features = ["rust-crypto"] }
6061
quickcheck = "1.0.3"
6162
rand = "0.8.5"
6263
tempfile = "3.10.1"

implementations/rust/ockam/ockam_api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ std = [
2828
]
2929
storage = ["ockam/storage"]
3030
aws-lc = ["ockam_vault/aws-lc", "ockam_transport_tcp/aws-lc"]
31-
rust-crypto = ["ockam_vault/rust-aes", "ockam_transport_tcp/ring"]
31+
rust-crypto = ["ockam_vault/rust-crypto", "ockam_transport_tcp/ring"]
3232

3333
[dependencies]
3434
aws-config = { version = "1.2.1", default-features = false, features = ["rustls"] }

implementations/rust/ockam/ockam_command/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ time = { version = "0.3", default-features = false, features = ["std", "local-of
126126
default = ["orchestrator", "rust-crypto"]
127127
orchestrator = []
128128
aws-lc = ["ockam_vault/aws-lc", "ockam_transport_tcp/aws-lc", "ockam_api/aws-lc"]
129-
rust-crypto = ["ockam_vault/rust-aes", "ockam_transport_tcp/ring", "ockam_api/rust-crypto"]
129+
rust-crypto = ["ockam_vault/rust-crypto", "ockam_transport_tcp/ring", "ockam_api/rust-crypto"]

implementations/rust/ockam/ockam_identity/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ and trustfully with cloud services and other devices.
1616
"""
1717

1818
[features]
19-
default = ["std", "software_vault", "rust-aes"]
19+
default = ["std", "software_vault", "rust-crypto"]
2020
software_vault = ["ockam_vault"]
2121
lease_proto_json = ["serde_json"]
2222
OCKAM_XX_25519_AES256_GCM_SHA256 = [
@@ -70,7 +70,7 @@ alloc = [
7070

7171
storage = ["ockam_vault/storage", "sqlx", "tokio-retry"]
7272
aws-lc = ["ockam_vault?/aws-lc"]
73-
rust-aes = ["ockam_vault?/rust-aes"]
73+
rust-crypto = ["ockam_vault?/rust-crypto"]
7474

7575
[dependencies]
7676
async-trait = "0.1.80"

implementations/rust/ockam/ockam_rust_elixir_nifs/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ crate-type = ["cdylib"]
1515
path = "src/lib.rs"
1616

1717
[features]
18-
default = ["rust-aes"]
18+
default = ["rust-crypto"]
1919
aws-lc = ["ockam_vault/aws-lc"]
20-
rust-aes = ["ockam_vault/rust-aes"]
20+
rust-crypto = ["ockam_vault/rust-crypto"]
2121

2222
[dependencies]
2323
hex = { version = "0.4", default-features = false }

implementations/rust/ockam/ockam_vault/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ crate-type = ["rlib"]
2525
path = "src/lib.rs"
2626

2727
[features]
28-
default = ["std", "storage", "rust-aes"]
28+
default = ["std", "storage", "rust-crypto"]
2929
disable_default_noise_protocol = []
3030
OCKAM_XX_25519_AES256_GCM_SHA256 = []
3131
OCKAM_XX_25519_AES128_GCM_SHA256 = []
3232
OCKAM_XX_25519_ChaChaPolyBLAKE2s = []
3333
aws-lc = ["dep:aws-lc-rs"]
34-
rust-aes = ["dep:aes-gcm"]
34+
rust-crypto = ["dep:aes-gcm"]
3535

3636
# Feature (enabled by default): "std" enables functionality expected to
3737
# be available on a standard platform.

implementations/rust/ockam/ockam_vault/src/software/vault_for_secure_channels/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use cfg_if::cfg_if;
22

3-
#[cfg(not(any(feature = "aws-lc", feature = "rust-aes",)))]
4-
compile_error! {"One feature must be enabled: \"aws-lc\" or \"rust-aes\""}
3+
#[cfg(not(any(feature = "aws-lc", feature = "rust-crypto",)))]
4+
compile_error! {"One feature must be enabled: \"aws-lc\" or \"rust-crypto\""}
55

66
#[cfg(any(
77
feature = "OCKAM_XX_25519_AES128_GCM_SHA256",

0 commit comments

Comments
 (0)