Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-06-14 10:39:31 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-06-14 10:39:31 +0300
commitdccd4c33061c4e010309be4b0f4f2538799ec156 (patch)
tree1ba6c52f2747a1806ae51d546ba7d9d30a125777
parent79bce5ddeae03810f0e7c6c38398c8f93034ef46 (diff)
sodium: Update to no-deprecated clap 3.2 API
See https://github.com/clap-rs/clap/issues/3822
-rw-r--r--generic/sodium/Cargo.toml2
-rw-r--r--generic/sodium/examples/decrypt_example.rs4
-rw-r--r--generic/sodium/examples/encrypt_example.rs4
-rw-r--r--generic/sodium/examples/generate_keys.rs4
4 files changed, 7 insertions, 7 deletions
diff --git a/generic/sodium/Cargo.toml b/generic/sodium/Cargo.toml
index 00bd8168..d707fe89 100644
--- a/generic/sodium/Cargo.toml
+++ b/generic/sodium/Cargo.toml
@@ -17,7 +17,7 @@ hex = "0.4"
smallvec = "1.0"
# example
-clap = { version = "3", optional = true, features = ["derive"] }
+clap = { version = "3.2", optional = true, features = ["derive"] }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
diff --git a/generic/sodium/examples/decrypt_example.rs b/generic/sodium/examples/decrypt_example.rs
index d808b92e..bd87bd6d 100644
--- a/generic/sodium/examples/decrypt_example.rs
+++ b/generic/sodium/examples/decrypt_example.rs
@@ -38,11 +38,11 @@ use serde::{Deserialize, Serialize};
#[clap(about = "Decrypt a gstsodium10 file")]
struct Args {
/// File to encrypt
- #[clap(short, long)]
+ #[clap(short, long, action)]
input: String,
/// File to decrypt
- #[clap(short, long)]
+ #[clap(short, long, action)]
output: String,
}
diff --git a/generic/sodium/examples/encrypt_example.rs b/generic/sodium/examples/encrypt_example.rs
index 2f894d66..d4b215b9 100644
--- a/generic/sodium/examples/encrypt_example.rs
+++ b/generic/sodium/examples/encrypt_example.rs
@@ -38,11 +38,11 @@ use serde::{Deserialize, Serialize};
#[clap(about = "Encrypt a file with in the gstsodium10 format")]
struct Args {
/// File to encrypt
- #[clap(short, long)]
+ #[clap(short, long, action)]
input: String,
/// File to decrypt
- #[clap(short, long)]
+ #[clap(short, long, action)]
output: String,
}
diff --git a/generic/sodium/examples/generate_keys.rs b/generic/sodium/examples/generate_keys.rs
index 17c3905e..106830b2 100644
--- a/generic/sodium/examples/generate_keys.rs
+++ b/generic/sodium/examples/generate_keys.rs
@@ -33,11 +33,11 @@ use std::path::PathBuf;
#[clap(about = "Generate a pair of Sodium's crypto_box_curve25519xsalsa20poly1305 keys.")]
struct Args {
/// Path to write the Keys
- #[clap(short, long, parse(from_os_str))]
+ #[clap(short, long, action)]
path: PathBuf,
/// Write a JSON file instead of a key.prv/key.pub pair
- #[clap(short, long)]
+ #[clap(short, long, action)]
json: bool,
}