evidence 0.1.0

Type-level tags for cryptographic primitives
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 = "2024"
rust-version = "1.90"
name = "evidence"
version = "0.1.0"
authors = ["Brooklyn Zelenka <hello@brooklynzelenka.com>"]
build = false
exclude = [
    ".ignore/",
    ".woodpecker/",
    "deny.toml",
    "design/",
    "flake.lock",
    "flake.nix",
    "HACKING.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-level tags for cryptographic primitives"
homepage = "https://codeberg.org/expede/evidence"
documentation = "https://docs.rs/evidence"
readme = "README.md"
keywords = [
    "digest",
    "hash",
    "phantom-types",
    "signature",
    "type-safe",
]
categories = [
    "cryptography",
    "no-std",
    "rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/expede/evidence"

[features]
aes-gcm = ["dep:aes-gcm"]
arbitrary = [
    "dep:arbitrary",
    "hybrid-array/arbitrary",
]
blake3 = ["dep:blake3"]
bolero = ["dep:bolero-generator"]
chacha20poly1305 = ["dep:chacha20poly1305"]
default = []
ed25519 = ["dep:ed25519-dalek"]
hmac = [
    "dep:hmac",
    "sha2",
]
minicbor = ["dep:minicbor"]
proptest = ["dep:proptest"]
rkyv = ["dep:rkyv"]
serde = [
    "dep:serde",
    "hybrid-array/serde",
]
serde_json = [
    "dep:serde_json",
    "serde",
]
sha2 = ["dep:sha2"]
sha3 = ["dep:sha3"]

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.10"
features = [
    "aes",
    "alloc",
    "getrandom",
]
optional = true
default-features = false

[dependencies.arbitrary]
version = "1"
optional = true
default-features = false

[dependencies.blake3]
version = "1.0"
optional = true
default-features = false

[dependencies.bolero-generator]
version = "0.11"
optional = true

[dependencies.chacha20poly1305]
version = "0.10"
features = [
    "alloc",
    "getrandom",
]
optional = true
default-features = false

[dependencies.ed25519-dalek]
version = "2.0"
optional = true
default-features = false

[dependencies.future_form]
version = "0.3"
default-features = false

[dependencies.futures]
version = "0.3"
features = ["alloc"]
default-features = false

[dependencies.hmac]
version = "0.12"
optional = true
default-features = false

[dependencies.hybrid-array]
version = "0.4"
default-features = false

[dependencies.minicbor]
version = "0.25"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.proptest]
version = "1"
features = ["std"]
optional = true
default-features = false

[dependencies.rkyv]
version = "0.8"
features = ["alloc"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
features = ["std"]
optional = true
default-features = false

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

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

[dev-dependencies.bolero]
version = "0.11"

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
fallible_impl_from = "warn"
fn_params_excessive_bools = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
multiple_crate_versions = "allow"
must_use_candidate = "warn"
panic = "warn"
todo = "warn"
unneeded_field_pattern = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_extern_crates = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.let_underscore]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "warn"
priority = -1