diff --git a/Cargo.lock b/Cargo.lock index 58a0e74..cf9f1e1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -487,7 +487,7 @@ dependencies = [ [[package]] name = "card-cli" -version = "1.10.5" +version = "1.10.6" dependencies = [ "authenticator 0.3.1", "base64 0.21.7", diff --git a/Cargo.toml b/Cargo.toml index 751b214..e3ee431 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "card-cli" -version = "1.10.5" +version = "1.10.6" authors = ["Hatter Jiang "] edition = "2018" [features] default = ["with-sequoia-openpgp"] -with-sequoia-openpgp = ["sequoia-openpgp"] +with-sequoia-openpgp = ["sequoia-openpgp", "openpgp-card-sequoia"] [dependencies] authenticator = "0.3" @@ -23,7 +23,7 @@ hex = "0.4" u2f = "0.2" openpgp-card = "0.3" openpgp-card-pcsc = "0.3" -openpgp-card-sequoia = "0.1" +openpgp-card-sequoia = { version = "0.1", optional = true } sequoia-openpgp = { version = "1.0", optional = true } chrono = "0.4" simpledateformat = "0.1" diff --git a/src/main.rs b/src/main.rs index 3ca2520..db31526 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,7 @@ fn inner_main() -> CommandError { Box::new(cmd_verifyfile::CommandImpl), ]; - let mut features = vec![]; + let mut features: Vec<&str> = vec![]; #[cfg(feature = "with-sequoia-openpgp")] features.push("with-sequoia-openpgp"); let about = format!(