Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 102 additions & 0 deletions wrapper/rust/wolfssl-wolfcrypt/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions wrapper/rust/wolfssl-wolfcrypt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ readme = "README.md"

[features]
std = []
rand_core = ["dep:rand_core"]
aead = ["dep:aead"]
cipher = ["dep:cipher"]

[dependencies]
rand_core = { version = "0.10", optional = true, default-features = false }
aead = { version = "0.5", optional = true, default-features = false }
cipher = { version = "0.5", optional = true, default-features = false }

[dev-dependencies]
aead = { version = "0.5", features = ["alloc", "dev"] }
cipher = "0.5"

[build-dependencies]
bindgen = "0.72.1"
Expand Down
13 changes: 8 additions & 5 deletions wrapper/rust/wolfssl-wolfcrypt/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
FEATURES := rand_core,aead,cipher
CARGO_FEATURE_FLAGS := --features $(FEATURES)

.PHONY: all
all:
cargo build
cargo clippy
cargo doc
cargo build $(CARGO_FEATURE_FLAGS)
cargo clippy $(CARGO_FEATURE_FLAGS)
cargo doc $(CARGO_FEATURE_FLAGS)

.PHONY: test
test:
cargo test -- --test-threads=1
cargo test $(CARGO_FEATURE_FLAGS) -- --test-threads=1

.PHONY: testfips
testfips:
cargo test --lib --bins --tests -- --test-threads=1
cargo test $(CARGO_FEATURE_FLAGS) --lib --bins --tests -- --test-threads=1

.PHONY: clean
clean:
Expand Down
Loading
Loading