add swtch for sequoia_openpgp

This commit is contained in:
2020-04-12 23:03:51 +08:00
parent 32aa27ab1a
commit 589b585f38
2 changed files with 41 additions and 15 deletions

View File

@@ -6,6 +6,11 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
# cargo b --features sequoia_openpgp
default = [] # "sequoia_openpgp"
sequoia_openpgp = ["sequoia-openpgp"]
[dependencies]
dirs = "2.0.1"
argparse = "0.2.2"
@@ -16,7 +21,7 @@ indicatif = "0.13.0"
urlencoding = "1.0.0"
base64 = "0.11.0"
reqwest = "0.9.22"
sequoia-openpgp = "0.16.0"
sequoia-openpgp = { version = "0.16.0", optional = true }
chrono = "0.4.10"
zip = "0.5.3"
rust_util = "0.2.1"