# 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 = "2021"
rust-version = "1.80"
name = "rand_aes"
version = "0.2.0"
authors = ["Nils Hasenbanck <nils@hasenbanck.de>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AES based pseudo-random number generator"
documentation = "https://docs.rs/rand_aes"
readme = "README.md"
keywords = [
    "rand",
    "random",
    "no-std",
    "aes",
]
categories = [
    "algorithms",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/hasenbanck/rand_aes"

[package.metadata.docs.rs]
features = [
    "std",
    "tls",
    "getrandom",
    "rand_core",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true

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

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

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

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

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

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

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

[[bench]]
name = "rng"
path = "benches/rng.rs"
harness = false

[dependencies.getrandom]
version = "0.2"
optional = true

[dependencies.rand_core]
version = "0.6"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.hex-literal]
version = "0.4"

[dev-dependencies.paste]
version = "1"

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

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

[features]
default = [
    "std",
    "tls",
    "getrandom",
    "rand_core",
]
experimental_riscv = []
force_runtime_detection = []
force_software = []
std = []
tls = ["std"]
tls_aes128_ctr128 = []
tls_aes256_ctr128 = []
tls_aes256_ctr64 = []
verification = ["std"]
