# 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"
rust-version = "1.88"
name = "qos_client"
version = "0.6.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Multipurpose CLI client for interacting with QuorumOS enclaves and related operations"
readme = false
keywords = [
    "quorumos",
    "enclave",
    "nitro",
    "attestation",
    "client",
]
categories = ["command-line-utilities"]
license = "AGPL-3.0-only"
repository = "https://github.com/tkhq/qos"

[features]
default = ["smartcard"]
smartcard = [
    "der",
    "x509-cert",
    "yubikey",
]

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

[[bin]]
name = "qos_client"
path = "src/main.rs"

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

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

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

[dependencies.aws-nitro-enclaves-nsm-api]
version = "0.4"
default-features = false

[dependencies.borsh]
version = "1.0"
features = [
    "std",
    "derive",
]
default-features = false

[dependencies.der]
version = "0.7"
optional = true
default-features = false

[dependencies.p256]
version = "0.13.2"
default-features = false

[dependencies.qos_core]
version = "0.6.1"
default-features = false

[dependencies.qos_crypto]
version = "0.6.1"
default-features = false

[dependencies.qos_hex]
version = "0.6.1"
default-features = false

[dependencies.qos_nsm]
version = "0.6.1"
default-features = false

[dependencies.qos_p256]
version = "0.6.1"

[dependencies.rand_core]
version = "0.9"
features = [
    "os_rng",
    "os_rng",
]
default-features = false

[dependencies.rpassword]
version = "7"
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.ureq]
version = "2.9"
default-features = false

[dependencies.x509-cert]
version = "0.2.5"
features = ["pem"]
optional = true
default-features = false

[dependencies.yubikey]
version = "0.8"
features = ["untested"]
optional = true
default-features = false

[dependencies.zeroize]
version = "1.8"
default-features = false

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

[dev-dependencies.qos_core]
version = "0.6.1"
features = ["mock"]
default-features = false

[dev-dependencies.qos_p256]
version = "0.6.1"
features = ["mock"]

[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[lints.rustdoc]
missing_docs = "warn"
