♻️ Refactor smartcard backend and update PGP decryption dependencies

This commit is contained in:
2026-05-21 23:56:38 +08:00
parent a7615228cc
commit 6a17e6c770
4 changed files with 43 additions and 43 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ repository = "https://git.hatter.ink/hatter/tiny-encrypt-rs"
default = ["decrypt", "macos", "smartcard"]
full-features = ["decrypt", "macos", "smartcard"]
decrypt = ["smartcard"]
smartcard = ["openpgp-card", "openpgp-card-pcsc", "yubikey"]
smartcard = ["openpgp-card", "card-backend-pcsc", "yubikey"]
macos = ["security-framework"]
[dependencies]
@@ -25,8 +25,7 @@ flate2 = "1.0"
fs-set-times = "0.20"
hex = "0.4"
indicatif = "0.18"
openpgp-card = { version = "0.3", optional = true }
openpgp-card-pcsc = { version = "0.3", optional = true }
openpgp-card = { version = "0.6", optional = true }
p256 = { version = "0.13", features = ["pem", "ecdh", "pkcs8"] }
p384 = { version = "0.13", features = ["pem", "ecdh", "pkcs8"] }
rand = "0.8"
@@ -57,6 +56,7 @@ external-command-rs = "0.1"
percent-encoding = "2.3"
ml-kem = { version = "0.2.1", features = ["zeroize"] }
zeroizing-alloc = "0.1.0"
card-backend-pcsc = { version = "0.5.1", optional = true }
[profile.release]
codegen-units = 1