Skip to content

Commit

Permalink
structopt: Migrate to clap
Browse files Browse the repository at this point in the history
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 <tomasagustin.gonzalezorlando@arm.com>
  • Loading branch information
tgonzalezorlandoarm committed Mar 18, 2024
1 parent d4e64a0 commit 4446169
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 128 deletions.
75 changes: 0 additions & 75 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ picky-asn1-der = { version = "0.4.0", optional = true }
picky-asn1 = { version = "0.8.0", optional = true }
tss-esapi = { version = "7.5.0", optional = true }
bincode = "1.3.1"
structopt = { version = "0.3.26", default-features = false}
clap = { version = "3.2.22", features = ["derive", "std"]}
derivative = "2.2.0"
hex = { version = "0.4.2", optional = true }
psa-crypto = { version = "0.12.0", default-features = false, features = ["operations","std"], optional = true }
Expand Down
134 changes: 84 additions & 50 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use std::sync::{
Arc,
};
use std::time::Duration;
use structopt::StructOpt;
use clap::StructOpt;

const MAIN_LOOP_DEFAULT_SLEEP: u64 = 10;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// See https://github.com/parallaxsecond/parsec/issues/392 for details.
#![allow(unused_qualifications)]

use structopt::StructOpt;
use clap::StructOpt;

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

0 comments on commit 4446169

Please sign in to comment.