rdnie 0.4.0

Spanish electronic ID card (DNIe) driver over PC/SC: CWA-14890 secure channel, certificates, PIN retry counter and signing
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.87"
name = "rdnie"
version = "0.4.0"
build = false
include = [
    "/src",
    "/examples",
    "/README.md",
    "/LICENSE",
    "/NOTICE",
    "/LICENSE.jmulticard.md",
    "/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Spanish electronic ID card (DNIe) driver over PC/SC: CWA-14890 secure channel, certificates, PIN retry counter and signing"
readme = "README.md"
keywords = [
    "dnie",
    "smartcard",
    "pcsc",
    "apdu",
    "signature",
]
categories = [
    "cryptography",
    "hardware-support",
]
license = "EUPL-1.2"
repository = "https://github.com/sgomez/rdnie"

[features]
default = ["pcsc"]
emulator = []
pcsc = ["dep:pcsc"]

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

[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = ["pcsc"]

[[example]]
name = "detect"
path = "examples/detect.rs"
required-features = ["pcsc"]

[[example]]
name = "latency"
path = "examples/latency.rs"
required-features = ["pcsc"]

[[example]]
name = "probe"
path = "examples/probe.rs"
required-features = ["pcsc"]

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

[dependencies.der]
version = "0.7"

[dependencies.des]
version = "0.9"

[dependencies.flate2]
version = "1"

[dependencies.pcsc]
version = "2.9"
optional = true

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.retail-mac]
version = "0.1"

[dependencies.rsa]
version = "0.9"
features = [
    "std",
    "u64_digit",
    "hazmat",
]
default-features = false

[dependencies.sha1]
version = "0.11"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.x509-cert]
version = "0.2"
features = ["std"]
default-features = false

[dependencies.zeroize]
version = "1"

[dev-dependencies.rpassword]
version = "7"

[dev-dependencies.rsa]
version = "0.9"
features = [
    "std",
    "u64_digit",
    "sha2",
]
default-features = false

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

[dev-dependencies.x509-cert]
version = "0.2"
features = ["builder"]
default-features = false

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

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(fuzzing)",
    'cfg(feature, values("faults"))',
]

[profile.dev.package.num-bigint-dig]
opt-level = 3

[profile.dev.package.pcsc]
debug-assertions = false