Skip to content
Snippets Groups Projects
  • Hugo Trentesaux's avatar
    4166a7b4
    add vault (!22) · 4166a7b4
    Hugo Trentesaux authored
    * move into function
    
    * remove unnecessary complexity
    
    * wip add phrase generation
    
    * prepare 0.2.7 release
    
    * remove dep
    
    * add predefined keys and update doc
    
    * wip add save from cmd line
    
    * improve error management
    
    * allow to store password-protected secret
    
    * wip use rage for password-encrypted keys
    
    * wip poc for keystore
    4166a7b4
    History
    add vault (!22)
    Hugo Trentesaux authored
    * move into function
    
    * remove unnecessary complexity
    
    * wip add phrase generation
    
    * prepare 0.2.7 release
    
    * remove dep
    
    * add predefined keys and update doc
    
    * wip add save from cmd line
    
    * improve error management
    
    * allow to store password-protected secret
    
    * wip use rage for password-encrypted keys
    
    * wip poc for keystore
This project manages its dependencies using Cargo. Learn more
Cargo.toml 1.91 KiB
[package]
authors = [
    "librelois <c@elo.tf>",
    "tuxmain <tuxmain@zettascript.org>",
    "h30x <hugo@trentesaux.fr>",
]
edition = "2021"
rust-version = "1.75.0"
license = "AGPL-3.0-only"
name = "gcli"
repository = "https://git.duniter.org/clients/rust/gcli-v2s"
version = "0.2.7"

[dependencies]
# subxt is main dependency
subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.34.0-duniter-substrate-v1.6.0', default-features = false, features = [
    "substrate-compat",
    "native",
    "jsonrpsee",
] }

# substrate primitives dependencies
sp-core = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" }
sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.6.0" }

# crates.io dependencies
anyhow = "^1.0"
clap = { version = "^4.5.0", features = ["derive"] }
codec = { package = "parity-scale-codec", version = "^3.6.9" }
env_logger = "^0.10"
futures = "^0.3.30"
graphql_client = { version = "^0.13.0", features = ["reqwest"] }
hex = "^0.4.3"
log = "^0.4.20"
reqwest = "^0.11.24"
rpassword = "^7.3.1"
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0.113"
tokio = { version = "^1.36.0", features = ["macros"] }
confy = "^0.5.1"
bs58 = "^0.5.0"
inquire = "^0.6.2"
directories = "^5.0.1"

# crypto
scrypt = { version = "^0.11", default-features = false }                      # for old-style key generation
nacl = { version = "^0.5.3" }                                                 # for old-style key generation
# this is beta crate for password-encrypted files
age = { default-features = false, version = "^0.10.0", features = ["armor"] }
bip39 = { version = "^2.0.0", features = ["rand"] } # mnemonic

# allows to build gcli for different runtimes and with different predefined networks 
[features]
default = ["gdev"] # default runtime is "gdev", gdev network is available
gdev = []
gtest = []
g1 = []