Skip to content

Commit 7672705

Browse files
authored
refactor: Upgraded dependencies to the latest major dependencies (#540)
1 parent 30b68c7 commit 7672705

File tree

8 files changed

+329
-267
lines changed
  • src
    • commands
      • account
        • create_account/fund_myself_create_account
        • delete_account
      • transaction/construct_transaction
        • add_action_1/add_action/delete_account
        • add_action_2/add_action/delete_account
        • add_action_3/add_action/delete_account
    • config

8 files changed

+329
-267
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inquire-clack = "0.1.0"
2828
strum = { version = "0.24", features = ["derive"] }
2929
strum_macros = "0.24"
3030
smart-default = "0.7.1"
31-
derive_more = "0.99.9"
31+
derive_more = "2"
3232
easy-ext = "1"
3333

3434
reqwest = { version = "0.12", features = ["blocking", "json"] }
@@ -50,7 +50,7 @@ serde = { version = "1.0", features = ["derive"] }
5050
serde_json = "1.0.57"
5151
serde_with = "3.12.0"
5252
toml = "0.8"
53-
dirs = "5"
53+
dirs = "6"
5454
shellexpand = "3"
5555
slipped10 = { version = "0.4.6" }
5656
url = { version = "2", features = ["serde"] }
@@ -62,10 +62,10 @@ tracing = "0.1.40"
6262
tracing-indicatif = "0.3.6"
6363
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
6464

65-
wasmparser = "0.217"
65+
wasmparser = "0.243"
6666

6767
semver = { version = "1.0.4", optional = true }
68-
self_update = { version = "0.41.0", features = [
68+
self_update = { version = "0.42", features = [
6969
"archive-tar",
7070
"compression-flate2",
7171
], optional = true }

src/commands/account/create_account/fund_myself_create_account/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,11 @@ impl NewAccount {
5353

5454
#[derive(derive_more::Display)]
5555
enum ConfirmOptions {
56-
#[display(
57-
fmt = "Yes, I want to check that <{account_id}> account does not exist. (It is free of charge, and only requires Internet access)"
58-
)]
56+
#[display("Yes, I want to check that <{account_id}> account does not exist. (It is free of charge, and only requires Internet access)")]
5957
Yes {
6058
account_id: crate::types::account_id::AccountId,
6159
},
62-
#[display(
63-
fmt = "No, I know that this account does not exist and I want to proceed."
64-
)]
60+
#[display("No, I know that this account does not exist and I want to proceed.")]
6561
No,
6662
}
6763
let select_choose_input =

src/commands/account/delete_account/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,11 @@ impl BeneficiaryAccount {
136136

137137
#[derive(derive_more::Display)]
138138
enum ConfirmOptions {
139-
#[display(
140-
fmt = "Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)"
141-
)]
139+
#[display("Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)")]
142140
Yes {
143141
account_id: crate::types::account_id::AccountId,
144142
},
145-
#[display(fmt = "No, I know this account exists and want to continue.")]
143+
#[display("No, I know this account exists and want to continue.")]
146144
No,
147145
}
148146
let select_choose_input =

src/commands/transaction/construct_transaction/add_action_1/add_action/delete_account/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,11 @@ impl DeleteAccountAction {
6868

6969
#[derive(derive_more::Display)]
7070
enum ConfirmOptions {
71-
#[display(
72-
fmt = "Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)"
73-
)]
71+
#[display("Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)")]
7472
Yes {
7573
account_id: crate::types::account_id::AccountId,
7674
},
77-
#[display(fmt = "No, I know this account exists and want to continue.")]
75+
#[display("No, I know this account exists and want to continue.")]
7876
No,
7977
}
8078
let select_choose_input =

src/commands/transaction/construct_transaction/add_action_2/add_action/delete_account/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,11 @@ impl DeleteAccountAction {
6868

6969
#[derive(derive_more::Display)]
7070
enum ConfirmOptions {
71-
#[display(
72-
fmt = "Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)"
73-
)]
71+
#[display("Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)")]
7472
Yes {
7573
account_id: crate::types::account_id::AccountId,
7674
},
77-
#[display(fmt = "No, I know this account exists and want to continue.")]
75+
#[display("No, I know this account exists and want to continue.")]
7876
No,
7977
}
8078
let select_choose_input =

src/commands/transaction/construct_transaction/add_action_3/add_action/delete_account/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,11 @@ impl DeleteAccountAction {
6868

6969
#[derive(derive_more::Display)]
7070
enum ConfirmOptions {
71-
#[display(
72-
fmt = "Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)"
73-
)]
71+
#[display("Yes, I want to check if account <{account_id}> exists. (It is free of charge, and only requires Internet access)")]
7472
Yes {
7573
account_id: crate::types::account_id::AccountId,
7674
},
77-
#[display(fmt = "No, I know this account exists and want to continue.")]
75+
#[display("No, I know this account exists and want to continue.")]
7876
No,
7977
}
8078
let select_choose_input =

src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct Config {
1414

1515
impl Default for Config {
1616
fn default() -> Self {
17-
let home_dir = dirs::home_dir().expect("Impossible to get your home dir!");
17+
let home_dir = std::env::home_dir().expect("Impossible to get your home dir!");
1818
let mut credentials_home_dir = std::path::PathBuf::from(&home_dir);
1919
credentials_home_dir.push(".near-credentials");
2020

0 commit comments

Comments
 (0)