Skip to content

Commit 873bc05

Browse files
Rust wrapper: add aead trait support
1 parent 07acf8d commit 873bc05

7 files changed

Lines changed: 1065 additions & 6 deletions

File tree

wrapper/rust/wolfssl-wolfcrypt/Cargo.lock

Lines changed: 58 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wrapper/rust/wolfssl-wolfcrypt/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@ readme = "README.md"
1313
[features]
1414
std = []
1515
rand_core = ["dep:rand_core"]
16+
aead = ["dep:aead"]
1617

1718
[dependencies]
1819
rand_core = { version = "0.10", optional = true, default-features = false }
20+
aead = { version = "0.5", optional = true, default-features = false }
21+
22+
[dev-dependencies]
23+
aead = { version = "0.5", features = ["alloc", "dev"] }
1924

2025
[build-dependencies]
2126
bindgen = "0.72.1"

wrapper/rust/wolfssl-wolfcrypt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FEATURES := rand_core
1+
FEATURES := rand_core,aead
22
CARGO_FEATURE_FLAGS := --features $(FEATURES)
33

44
.PHONY: all

0 commit comments

Comments
 (0)