Skip to content

Commit

Permalink
chore: Bump up a few more dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed May 12, 2023
1 parent a759841 commit aa875ad
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 19 deletions.
19 changes: 15 additions & 4 deletions rs/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ edition = "2021"

[dependencies]
serde = { version = "1.0.130", features = ["derive"] }
clap = { version = "3.1.6", features = ["derive", "env"] }
clap = { version = "4.2.7", features = [
"derive",
"env",
"usage",
"color",
"help",
"error-context",
"suggestions",
"wrap_help",
"string",
"cargo",
] }
reqwest = { version = "0.11", features = ["json"] }
serde_json = "1.0.68"
anyhow = "1.0.44"
Expand All @@ -30,14 +41,14 @@ tokio = { version = "1.14.0", features = ["full"] }
strum = { version = "0.24.1", features = ["derive"] }
strum_macros = "0.24.3"
flate2 = "1.0.22"
dirs = "4.0"
dirs = "5.0.1"
decentralization = { path = "../decentralization" }
ic-management-types = { path = "../ic-management-types" }
dialoguer = "0.10.0"
itertools = "0.10"
async-trait = "0.1.53"
keyring = "1.1.2"
cryptoki = "0.3.0"
keyring = "2.0.2"
cryptoki = "0.3.1"
candid = "0.8.4"
url = "2.3.1"
clap-num = "1.0.0"
Expand Down
18 changes: 9 additions & 9 deletions rs/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ use ic_management_types::Network;
pub struct Opts {
#[clap(long, env = "HSM_PIN")]
pub(crate) hsm_pin: Option<String>,
#[clap(long, parse(try_from_str=maybe_hex), env = "HSM_SLOT")]
#[clap(long, value_parser=maybe_hex::<u64>, env = "HSM_SLOT")]
pub(crate) hsm_slot: Option<u64>,
#[clap(short, long, env = "HSM_KEY_ID")]
#[clap(long, env = "HSM_KEY_ID")]
pub(crate) hsm_key_id: Option<String>,
#[clap(long, env = "PRIVATE_KEY_PEM")]
pub(crate) private_key_pem: Option<String>,
#[clap(short, long, env = "NEURON_ID")]
#[clap(long, env = "NEURON_ID")]
pub(crate) neuron_id: Option<u64>,
#[clap(short, long, env = "IC_ADMIN")]
#[clap(long, env = "IC_ADMIN")]
pub(crate) ic_admin: Option<String>,
#[clap(long, env = "DEV")]
pub(crate) dev: bool,
Expand Down Expand Up @@ -97,16 +97,16 @@ pub(crate) mod subnet {
motivation: Option<String>,

/// Minimum Nakamoto coefficients after the replacement
#[clap(long, takes_value = true, multiple_values = true)]
#[clap(long, num_args(1..))]
min_nakamoto_coefficients: Vec<String>,

/// Features or Node IDs to exclude from the available nodes pool
#[clap(long, takes_value = true, multiple_values = true)]
#[clap(long, num_args(1..))]
exclude: Vec<String>,

/// Force the inclusion of the provided nodes for replacement,
/// regardless of the decentralization score
#[clap(long, takes_value = true, multiple_values = true)]
#[clap(long, num_args(1..))]
include: Vec<PrincipalId>,

/// More verbose execution. For instance, print logs from the
Expand All @@ -121,12 +121,12 @@ pub(crate) mod subnet {
size: usize,

/// Features or Node IDs to exclude from the available nodes pool
#[clap(long, takes_value = true, multiple_values = true)]
#[clap(long, num_args(1..))]
exclude: Vec<String>,

/// Force the inclusion of the provided nodes for replacement,
/// regardless of the decentralization score
#[clap(long, takes_value = true, multiple_values = true)]
#[clap(long, num_args(1..))]
include: Vec<PrincipalId>,

/// Motivation for extending the subnet
Expand Down
2 changes: 1 addition & 1 deletion rs/cli/src/ic_admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ fn detect_hsm_auth() -> Result<Option<Auth>> {
let info = ctx.get_slot_info(slot)?;
if info.slot_description().starts_with("Nitrokey Nitrokey HSM") {
let key_id = format!("hsm-{}-{}", info.slot_description(), info.manufacturer_id());
let pin_entry = Entry::new("release-cli", &key_id);
let pin_entry = Entry::new("release-cli", &key_id)?;
let pin = match pin_entry.get_password() {
Err(Error::NoEntry) => Password::new().with_prompt("Please enter the HSM PIN: ").interact()?,
Ok(pin) => pin,
Expand Down
2 changes: 1 addition & 1 deletion rs/cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::cli::version::Commands::{Bless, Retire, Update};
use clap::{CommandFactory, ErrorKind, Parser};
use clap::{error::ErrorKind, CommandFactory, Parser};
use ic_management_types::requests::NodesRemoveRequest;
use ic_management_types::{MinNakamotoCoefficients, Network, NodeFeature};
use std::collections::BTreeMap;
Expand Down
2 changes: 1 addition & 1 deletion rs/decentralization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ log = "0.4.14"
tabular = "0.2"
rayon = "1.5.1"
easy-parallel = "3.1.0"
lru = "0.6.6"
lru = "0.10.0"

[dev-dependencies]
include_dir = "0.7.2"
Expand Down
4 changes: 2 additions & 2 deletions rs/ic-management-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ actix-web = { version = "4.2.1", default-features = false, features = [
ic-base-types = { git = "https://github.com/dfinity/ic.git", rev = "0a239c213c048563577969276739b090aa31c241" }
ic-registry-keys = { git = "https://github.com/dfinity/ic.git", rev = "0a239c213c048563577969276739b090aa31c241" }
anyhow = "1.0.43"
serde_with = "2.0.1"
serde_with = "3.0.0"
futures = "0.3.16"
serde_yaml = "0.9.11"
reqwest = { version = "0.11.4", features = ["json"] }
Expand All @@ -45,7 +45,7 @@ strum = "0.24.1"
strum_macros = "0.24.3"
itertools = "0.10.1"
log = "0.4.14"
env_logger = "0.9.0"
env_logger = "0.10.0"
reverse_geocoder = "3.0.1"
csv = "1.1.6"
candid = "0.8.4"
Expand Down
2 changes: 1 addition & 1 deletion rs/slack-notifications/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dotenv = "0.15.0"
prost = "0.11.0"
strum = "0.24.1"
strum_macros = "0.24.3"
retry = "1.3.1"
retry = "2.0.0"
itertools = "0.10.1"
regex = "1.5.4"
lazy_static = "1.4.0"
Expand Down

0 comments on commit aa875ad

Please sign in to comment.