# 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 = "fido-authenticator"
version = "0.4.0-rc.1"
authors = [
    "The Trussed developers",
    "Nicolas Stalder <n@stalder.io>",
    "Nitrokey GmbH",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "FIDO authenticator Trussed app"
documentation = "https://docs.rs/fido-authenticator"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/trussed-dev/fido-authenticator"

[package.metadata.docs.rs]
features = [
    "chunked",
    "dispatch",
]

[features]
apdu-dispatch = ["dep:apdu-app"]
chunked = ["dep:trussed-chunked"]
ctaphid-dispatch = ["dep:ctaphid-app"]
disable-reset-time-window = []
dispatch = [
    "apdu-dispatch",
    "ctaphid-dispatch",
    "dep:iso7816",
]
log-all = []
log-debug = []
log-error = []
log-info = []
log-none = []
log-trace = []
log-warn = []

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

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

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

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

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

[dependencies.apdu-app]
version = "0.2"
optional = true

[dependencies.cbor-smol]
version = "0.5"

[dependencies.cosey]
version = "0.4"

[dependencies.ctap-types]
version = "=0.6.0-rc.3"
features = [
    "get-info-full",
    "large-blobs",
    "third-party-payment",
]

[dependencies.ctaphid-app]
version = "0.2"
optional = true

[dependencies.delog]
version = "0.1"

[dependencies.heapless]
version = "0.9"

[dependencies.heapless-bytes]
version = "0.5"
features = ["heapless-0.9"]

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

[dependencies.littlefs2-core]
version = "0.1"

[dependencies.serde]
version = "1.0"
default-features = false

[dependencies.serde-indexed]
version = "0.1"

[dependencies.serde_bytes]
version = "0.11.14"
default-features = false

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

[dependencies.trussed-chunked]
version = "0.3"
optional = true

[dependencies.trussed-core]
version = "0.2"
features = [
    "aes256-cbc",
    "certificate-client",
    "chacha8-poly1305",
    "crypto-client",
    "ed255",
    "filesystem-client",
    "hmac-sha256",
    "management-client",
    "p256",
    "sha256",
    "ui-client",
]

[dependencies.trussed-fs-info]
version = "0.3"

[dependencies.trussed-hkdf]
version = "0.4"

[dev-dependencies.aes]
version = "0.8.4"

[dev-dependencies.cbc]
version = "0.1.2"
features = ["alloc"]

[dev-dependencies.ciborium]
version = "0.2.2"

[dev-dependencies.ciborium-io]
version = "0.2.2"

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

[dev-dependencies.ctaphid]
version = "0.3.1"
default-features = false

[dev-dependencies.ctaphid-dispatch]
version = "0.4"

[dev-dependencies.delog]
version = "0.1.6"
features = ["std-log"]

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

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

[dev-dependencies.hmac]
version = "0.12.1"

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

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.littlefs2]
version = "0.7"

[dev-dependencies.log]
version = "0.4.21"

[dev-dependencies.p256]
version = "0.13.2"
features = ["ecdh"]

[dev-dependencies.rand]
version = "0.8.4"

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

[dev-dependencies.serde_test]
version = "1.0.176"

[dev-dependencies.sha2]
version = "0.10"

[dev-dependencies.usbd-ctaphid]
version = "0.4"

[dev-dependencies.x509-parser]
version = "0.16"

[profile.test]
opt-level = 2
