Merge pull request #189 from str4d/update-deps-0.6.0
Update dependencies for 0.6.0
This commit is contained in:
Generated
+237
-228
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -42,8 +42,8 @@ x509-parser = "0.14"
|
||||
yubikey = { version = "=0.8.0-pre.0", features = ["untested"] }
|
||||
|
||||
# Translations
|
||||
i18n-embed = { version = "0.14", features = ["desktop-requester", "fluent-system"] }
|
||||
i18n-embed-fl = "0.8"
|
||||
i18n-embed = { version = "0.15", features = ["desktop-requester", "fluent-system"] }
|
||||
i18n-embed-fl = "0.9"
|
||||
lazy_static = "1"
|
||||
rust-embed = "8"
|
||||
|
||||
@@ -56,3 +56,7 @@ man = "0.3"
|
||||
tempfile = "3"
|
||||
test-with = "0.11"
|
||||
which = "5"
|
||||
|
||||
[patch.crates-io]
|
||||
age-core = { git = "https://github.com/str4d/rage.git", rev = "baf277a749c839e49f93bffb58d36734ac94be83" }
|
||||
age-plugin = { git = "https://github.com/str4d/rage.git", rev = "baf277a749c839e49f93bffb58d36734ac94be83" }
|
||||
|
||||
+1
-5
@@ -327,11 +327,7 @@ fn main() -> Result<(), Error> {
|
||||
}
|
||||
|
||||
if let Some(state_machine) = opts.age_plugin {
|
||||
run_state_machine(
|
||||
&state_machine,
|
||||
Some(plugin::RecipientPlugin::default),
|
||||
Some(plugin::IdentityPlugin::default),
|
||||
)?;
|
||||
run_state_machine(&state_machine, plugin::Handler)?;
|
||||
Ok(())
|
||||
} else if opts.version {
|
||||
println!("age-plugin-yubikey {}", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
+21
-2
@@ -2,13 +2,28 @@ use age_core::format::{FileKey, Stanza};
|
||||
use age_plugin::{
|
||||
identity::{self, IdentityPluginV1},
|
||||
recipient::{self, RecipientPluginV1},
|
||||
Callbacks,
|
||||
Callbacks, PluginHandler,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::io;
|
||||
|
||||
use crate::{fl, format, key, p256::Recipient, PLUGIN_NAME};
|
||||
|
||||
pub(crate) struct Handler;
|
||||
|
||||
impl PluginHandler for Handler {
|
||||
type RecipientV1 = RecipientPlugin;
|
||||
type IdentityV1 = IdentityPlugin;
|
||||
|
||||
fn recipient_v1(self) -> io::Result<Self::RecipientV1> {
|
||||
Ok(RecipientPlugin::default())
|
||||
}
|
||||
|
||||
fn identity_v1(self) -> io::Result<Self::IdentityV1> {
|
||||
Ok(IdentityPlugin::default())
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Default)]
|
||||
pub(crate) struct RecipientPlugin {
|
||||
recipients: Vec<Recipient>,
|
||||
@@ -58,6 +73,10 @@ impl RecipientPluginV1 for RecipientPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
fn labels(&mut self) -> HashSet<String> {
|
||||
HashSet::new()
|
||||
}
|
||||
|
||||
fn wrap_file_keys(
|
||||
&mut self,
|
||||
file_keys: Vec<FileKey>,
|
||||
|
||||
Reference in New Issue
Block a user