feat: v0.7.1, compiles without smart card(encrypt only)

This commit is contained in:
2023-10-29 17:01:38 +08:00
parent 25de8ea682
commit 3a3ebd64bf
6 changed files with 32 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tiny-encrypt"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
license = "MIT"
description = "A simple and tiny file encrypt tool"
@@ -8,6 +8,10 @@ repository = "https://git.hatter.ink/hatter/tiny-encrypt-rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["smartcard"]
smartcard = ["openpgp-card", "openpgp-card-pcsc", "yubikey"]
[dependencies]
aes-gcm-stream = "0.2"
base64 = "0.21"
@@ -18,8 +22,8 @@ flate2 = "1.0"
fs-set-times = "0.20"
hex = "0.4"
indicatif = "0.17"
openpgp-card = "0.3"
openpgp-card-pcsc = "0.3"
openpgp-card = { version = "0.3", optional = true }
openpgp-card-pcsc = { version = "0.3", optional = true }
p256 = { version = "0.13", features = ["pem", "ecdh", "pkcs8"] }
p384 = { version = "0.13", features = ["pem", "ecdh", "pkcs8"] }
rand = "0.8"
@@ -35,7 +39,7 @@ simpledateformat = "0.1"
tabled = "0.14"
x25519-dalek = "2.0"
x509-parser = "0.15"
yubikey = { version = "0.8", features = ["untested"] }
yubikey = { version = "0.8", features = ["untested"], optional = true }
zeroize = "1.6"
[patch.crates-io]