dcrypt-algorithms 4.0.0

Cryptographic primitives for the dcrypt library
Documentation
# 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"
name = "dcrypt-algorithms"
version = "4.0.0"
authors = ["Heath Ledger"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographic primitives for the dcrypt library"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/ioi-foundation/dcrypt"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.release]
publish = true

[features]
aead = ["alloc"]
alloc = [
    "dcrypt-api/alloc",
    "dcrypt-common/alloc",
    "dcrypt-internal/alloc",
]
block = []
default = [
    "std",
    "xof",
    "ec",
]
ec = [
    "alloc",
    "groups",
    "pairings",
]
groups = []
hash = []
kdf = ["alloc"]
mac = []
pairings = ["groups"]
std = [
    "alloc",
    "hex/std",
    "dcrypt-api/std",
    "dcrypt-common/std",
    "dcrypt-internal/std",
    "hash",
    "xof",
    "aead",
    "block",
    "kdf",
    "mac",
    "stream",
    "ec",
]
stream = []
xof = ["alloc"]

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

[[example]]
name = "no_std_usage"
path = "examples/no_std_usage.rs"

[[example]]
name = "primitives_basic_usage"
path = "examples/primitives_basic_usage.rs"

[[example]]
name = "type_system"
path = "examples/type_system.rs"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.base64]
version = "=0.22.1"
features = ["alloc"]
default-features = false

[dependencies.dcrypt-api]
version = "=4.0.0"
default-features = false

[dependencies.dcrypt-common]
version = "=4.0.0"
default-features = false

[dependencies.dcrypt-internal]
version = "=4.0.0"
default-features = false

[dependencies.dcrypt-params]
version = "=4.0.0"

[dependencies.hex]
version = "=0.4.3"
features = ["alloc"]
default-features = false

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

[dev-dependencies.serde]
version = "=1.0.229"
features = ["derive"]

[dev-dependencies.serde_json]
version = "=1.0.151"

[lints.rust]
unsafe_code = "forbid"