[package]
name = "sequoia-cryptoki"
description = "Library for working with PKCS#11 devices (cryptokis) from Sequoia"
version = "0.1.1"
keywords = ["cryptography", "openpgp"]
categories = ["cryptography"]
authors.workspace = true
repository.workspace = true
readme.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true

[badges]
maintenance = { status = "actively-developed" }

[dependencies]
aho-corasick = "1"
anyhow = "1.0.18"
chrono = "0.4.38"
cryptoki = "0.12.0"
dirs = ">= 5, <7"
log = "0.4"
regex = "1"
sequoia-directories = "0.1"
sequoia-openpgp = { version = "2.4.0", default-features = false }
tempfile = "3.1"
thiserror = { version = ">=1, <3" }
toml_edit = { version = ">= 0.22, <0.26", default-features = false, features = ["display", "parse"] }

[dev-dependencies]
tempfile = "3.1"

[target.'cfg(not(windows))'.dev-dependencies]
# Enables a crypto backend for the tests:
sequoia-openpgp = { version = "2.4.0", default-features = false, features = ["crypto-nettle", "__implicit-crypto-backend-for-tests"]  }

[target.'cfg(windows)'.dev-dependencies]
# Enables a crypto backend for the tests:
sequoia-openpgp = { version = "2.4.0", default-features = false, features = ["crypto-cng", "__implicit-crypto-backend-for-tests"] }

[package.metadata.docs.rs]
# Enables a crypto backend for the docs.rs generation:
features = ["sequoia-openpgp/default"]
