mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
vanityadr: Remove serde_json dependency.
This commit is contained in:
7
Cargo.lock
generated
7
Cargo.lock
generated
@@ -2954,9 +2954,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "indicatif"
|
name = "indicatif"
|
||||||
version = "0.17.0-rc.9"
|
version = "0.17.0-rc.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e540eeecee89ed4391cbbe2c86a9df6c061fc93f7710e2af69cbfccdc6564eae"
|
checksum = "088977cb4de4e09ea0232bd51c844490475ad94344fb0c60784f1fb380059b6d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console",
|
"console",
|
||||||
"number_prefix",
|
"number_prefix",
|
||||||
@@ -6576,11 +6576,10 @@ dependencies = [
|
|||||||
"clap 3.1.8",
|
"clap 3.1.8",
|
||||||
"ctrlc",
|
"ctrlc",
|
||||||
"darkfi",
|
"darkfi",
|
||||||
"indicatif 0.17.0-rc.9",
|
"indicatif 0.17.0-rc.10",
|
||||||
"num_cpus",
|
"num_cpus",
|
||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"rayon",
|
"rayon",
|
||||||
"serde_json",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
@@ -10,11 +10,10 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bs58 = "0.4.0"
|
bs58 = "0.4.0"
|
||||||
clap = {version = "3.1.6", features = ["derive"]}
|
clap = {version = "3.1.8", features = ["derive"]}
|
||||||
ctrlc = "3.2.1"
|
ctrlc = "3.2.1"
|
||||||
darkfi = {path = "../../", features = ["crypto"]}
|
darkfi = {path = "../../", features = ["crypto"]}
|
||||||
indicatif = "0.17.0-rc.9"
|
indicatif = "0.17.0-rc.10"
|
||||||
num_cpus = "1.13.1"
|
num_cpus = "1.13.1"
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
rayon = "1.5.1"
|
rayon = "1.5.1"
|
||||||
serde_json = "1.0.79"
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ use clap::Parser;
|
|||||||
use indicatif::{ProgressBar, ProgressStyle};
|
use indicatif::{ProgressBar, ProgressStyle};
|
||||||
use rand::rngs::OsRng;
|
use rand::rngs::OsRng;
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use serde_json::json;
|
|
||||||
|
|
||||||
use darkfi::{
|
use darkfi::{
|
||||||
cli_desc,
|
cli_desc,
|
||||||
@@ -116,13 +115,11 @@ fn main() {
|
|||||||
let attempts = progress.position();
|
let attempts = progress.position();
|
||||||
progress.finish_and_clear();
|
progress.finish_and_clear();
|
||||||
|
|
||||||
let result = json!({
|
println!(
|
||||||
"address": addr.address,
|
"{{\"address\":\"{}\",\"attempts\":{},\"secret\":\"{:?}\"}}",
|
||||||
"secret": format!("{:?}", addr.secret.0),
|
addr.address, attempts, addr.secret.0
|
||||||
"attempts": attempts,
|
);
|
||||||
});
|
|
||||||
|
|
||||||
println!("{}", result);
|
|
||||||
exit(0);
|
exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user