# 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.0"
name = "affinidi-mdoc"
version = "0.1.0"
authors = ["Glenn Gore <glenn@affinidi.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ISO/IEC 18013-5 mdoc (Mobile Document) implementation for mobile driving licences and eIDAS attestations."
homepage = "https://affinidi.com/"
readme = "README.md"
keywords = [
    "ssi",
    "affinidi",
    "mdoc",
    "iso18013",
    "eidas",
]
license = "Apache-2.0"
repository = "https://github.com/affinidi/affinidi-tdk-rs"

[features]
_test-utils = []
default = ["es256"]
eddsa = ["dep:ed25519-dalek"]
es256 = ["dep:p256"]
es384 = ["dep:p384"]
mdl = []

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

[[example]]
name = "mdoc_issuance"
path = "examples/mdoc_issuance.rs"
required-features = ["_test-utils"]

[[example]]
name = "mdoc_presentation"
path = "examples/mdoc_presentation.rs"
required-features = ["_test-utils"]

[dependencies.aes-gcm]
version = "0.10"

[dependencies.ciborium]
version = "0.2"

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

[dependencies.coset]
version = "0.3"

[dependencies.ed25519-dalek]
version = "2.2"
features = ["rand_core"]
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.p256]
version = "0.13"
features = [
    "ecdsa",
    "arithmetic",
]
optional = true

[dependencies.p384]
version = "0.13"
features = [
    "ecdsa",
    "arithmetic",
]
optional = true

[dependencies.rand]
version = "0.9"

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

[dependencies.serde_bytes]
version = "0.11"

[dependencies.serde_cbor]
version = "0.11"

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]
