wolfssl-wolfcrypt 2.0.0

Rust wrapper for wolfssl C library cryptographic functionality
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "wolfssl-wolfcrypt"
version = "2.0.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust wrapper for wolfssl C library cryptographic functionality"
documentation = "https://github.com/wolfSSL/wolfssl/tree/master/wrapper/rust"
readme = "README.md"
keywords = [
    "wolfssl",
    "fips",
    "security",
    "encryption",
    "cryptography",
]
categories = [
    "cryptography",
    "security",
    "api-bindings",
]
license = "GPL-3.0"
repository = "https://github.com/wolfSSL/wolfssl"

[features]
aead = ["dep:aead"]
alloc = []
cipher = ["dep:cipher"]
digest = ["dep:digest"]
kem = [
    "dep:kem",
    "hybrid-array/extra-sizes",
]
mac = ["digest/mac"]
password-hash = [
    "dep:password-hash",
    "password-hash/phc",
]
rand_core = ["dep:rand_core"]
signature = ["dep:signature"]

[lib]
name = "wolfssl_wolfcrypt"
path = "src/lib.rs"

[[test]]
name = "test_aes"
path = "tests/test_aes.rs"

[[test]]
name = "test_blake2"
path = "tests/test_blake2.rs"

[[test]]
name = "test_blake2_digest"
path = "tests/test_blake2_digest.rs"

[[test]]
name = "test_blake2_mac"
path = "tests/test_blake2_mac.rs"

[[test]]
name = "test_chacha20_poly1305"
path = "tests/test_chacha20_poly1305.rs"

[[test]]
name = "test_cmac"
path = "tests/test_cmac.rs"

[[test]]
name = "test_cmac_mac"
path = "tests/test_cmac_mac.rs"

[[test]]
name = "test_curve25519"
path = "tests/test_curve25519.rs"

[[test]]
name = "test_dh"
path = "tests/test_dh.rs"

[[test]]
name = "test_dilithium"
path = "tests/test_dilithium.rs"

[[test]]
name = "test_ecc"
path = "tests/test_ecc.rs"

[[test]]
name = "test_ecdsa"
path = "tests/test_ecdsa.rs"

[[test]]
name = "test_ed25519"
path = "tests/test_ed25519.rs"

[[test]]
name = "test_ed448"
path = "tests/test_ed448.rs"

[[test]]
name = "test_hkdf"
path = "tests/test_hkdf.rs"

[[test]]
name = "test_hmac"
path = "tests/test_hmac.rs"

[[test]]
name = "test_hmac_mac"
path = "tests/test_hmac_mac.rs"

[[test]]
name = "test_kdf"
path = "tests/test_kdf.rs"

[[test]]
name = "test_lms"
path = "tests/test_lms.rs"

[[test]]
name = "test_mlkem"
path = "tests/test_mlkem.rs"

[[test]]
name = "test_mlkem_kem"
path = "tests/test_mlkem_kem.rs"

[[test]]
name = "test_pbkdf2_password_hash"
path = "tests/test_pbkdf2_password_hash.rs"

[[test]]
name = "test_prf"
path = "tests/test_prf.rs"

[[test]]
name = "test_random"
path = "tests/test_random.rs"

[[test]]
name = "test_rsa"
path = "tests/test_rsa.rs"

[[test]]
name = "test_rsa_oaep"
path = "tests/test_rsa_oaep.rs"

[[test]]
name = "test_rsa_pkcs1v15"
path = "tests/test_rsa_pkcs1v15.rs"

[[test]]
name = "test_scrypt_password_hash"
path = "tests/test_scrypt_password_hash.rs"

[[test]]
name = "test_sha"
path = "tests/test_sha.rs"

[[test]]
name = "test_sha_digest"
path = "tests/test_sha_digest.rs"

[[test]]
name = "test_wolfcrypt"
path = "tests/test_wolfcrypt.rs"

[dependencies.aead]
version = "0.5"
optional = true
default-features = false

[dependencies.cipher]
version = "0.5"
optional = true
default-features = false

[dependencies.digest]
version = "0.11"
features = ["block-api"]
optional = true
default-features = false

[dependencies.hybrid-array]
version = "0.4.7"
optional = true
default-features = false

[dependencies.kem]
version = "0.3"
optional = true
default-features = false

[dependencies.num-traits]
version = "0.2"
default-features = false

[dependencies.password-hash]
version = "0.6.1"
optional = true
default-features = false

[dependencies.rand_core]
version = "0.10"
optional = true
default-features = false

[dependencies.signature]
version = "2.2"
optional = true
default-features = false

[dependencies.zeroize]
version = "1.3"
features = ["derive"]
default-features = false

[dev-dependencies.aead]
version = "0.5"
features = [
    "alloc",
    "dev",
]

[dev-dependencies.cipher]
version = "0.5"

[dev-dependencies.digest]
version = "0.11"
features = [
    "dev",
    "mac",
]

[dev-dependencies.kem]
version = "0.3"

[dev-dependencies.password-hash]
version = "0.6.1"
features = ["phc"]

[dev-dependencies.signature]
version = "2.2"

[build-dependencies.bindgen]
version = "0.72.1"

[build-dependencies.regex]
version = "1.5"

[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"
strip = true