# 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.91"
name = "soft-fido2"
version = "0.3.1"
authors = ["Pando85 <pando855@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust implementation of FIDO2/WebAuthn CTAP 2.0/2.1 protocol"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/pando85/soft-fido2"
resolver = "2"

[features]
default = [
    "std",
    "usb",
]
std = [
    "soft-fido2-crypto/std",
    "soft-fido2-ctap/std",
    "soft-fido2-transport",
    "dep:secstr",
]
usb = [
    "std",
    "soft-fido2-transport/usb",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aes]
version = "0.8"

[dependencies.cbc]
version = "0.1"
features = ["alloc"]

[dependencies.cbor4ii]
version = "1.2"
features = ["serde1"]
default-features = false

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "ecdh",
]

[dependencies.rand]
version = "0.8"

[dependencies.secstr]
version = "0.5"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_bytes]
version = "0.11"

[dependencies.sha2]
version = "0.10"

[dependencies.smallvec]
version = "1.13"
features = ["serde"]

[dependencies.soft-fido2-crypto]
version = "0.3.1"
default-features = false

[dependencies.soft-fido2-ctap]
version = "0.3.1"
default-features = false

[dependencies.soft-fido2-transport]
version = "0.3.1"
optional = true

[dependencies.spin]
version = "0.9"

[dev-dependencies.base64]
version = "0.22"

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

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

[dev-dependencies.lazy_static]
version = "1.4"

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

[dev-dependencies.serial_test]
version = "3.0"

[dev-dependencies.url]
version = "2.5"

[dev-dependencies.uuid]
version = "1.11"
features = ["v4"]

[dev-dependencies.webauthn-rs]
version = "0.5.3"
