Skip to content

Commit 4446169

Browse files
structopt: Migrate to clap
According to TeXitoi/structopt#525, structopt has entered maintenance mode, and clap should be used for new development. Migrate to clap so that nightly builds succeed as well. Signed-off-by: Tomás González <[email protected]>
1 parent d4e64a0 commit 4446169

File tree

5 files changed

+87
-128
lines changed

5 files changed

+87
-128
lines changed

Cargo.lock

Lines changed: 0 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ picky-asn1-der = { version = "0.4.0", optional = true }
3131
picky-asn1 = { version = "0.8.0", optional = true }
3232
tss-esapi = { version = "7.5.0", optional = true }
3333
bincode = "1.3.1"
34-
structopt = { version = "0.3.26", default-features = false}
34+
clap = { version = "3.2.22", features = ["derive", "std"]}
3535
derivative = "2.2.0"
3636
hex = { version = "0.4.2", optional = true }
3737
psa-crypto = { version = "0.12.0", default-features = false, features = ["operations","std"], optional = true }

fuzz/Cargo.lock

Lines changed: 84 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use std::sync::{
4949
Arc,
5050
};
5151
use std::time::Duration;
52-
use structopt::StructOpt;
52+
use clap::StructOpt;
5353

5454
const MAIN_LOOP_DEFAULT_SLEEP: u64 = 10;
5555

src/utils/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// See https://github.com/parallaxsecond/parsec/issues/392 for details.
88
#![allow(unused_qualifications)]
99

10-
use structopt::StructOpt;
10+
use clap::StructOpt;
1111

1212
/// Parsec is the Platform AbstRaction for SECurity, a new open-source initiative to provide a
1313
/// common API to secure services in a platform-agnostic way.

0 commit comments

Comments
 (0)