[package]
authors = ["librelois <c@elo.tf>", "tuxmain <tuxmain@zettascript.org>"]
edition = "2021"
license = "AGPL-3.0"
name = "gcli"
repository = "https://git.duniter.org/clients/rust/gcli-v2s"
version = "0.1.0"

[dependencies]
anyhow = "1.0"
clap = { version = "4.1.9", features = ["derive"] }
codec = { package = "parity-scale-codec", version = "3.4.0" }
env_logger = "0.10"
futures = "0.3.27"
graphql_client = { version = "0.12.0", features = ["reqwest"] }
hex = "0.4.3"
log = "0.4.17"
reqwest = "0.11.14"
rpassword = "7.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "^1.0.107"
sp-core = { git = "https://github.com/duniter/substrate.git", branch = "duniter-substrate-v0.9.42" }
sp-runtime = { git = "https://github.com/duniter/substrate", branch = "duniter-substrate-v0.9.42" }
subxt =  { git = "https://github.com/duniter/subxt.git", branch = "subxt-v0.32.1-duniter-substrate-v0.9.42", features = ["substrate-compat"] }
# subxt-signer =  { git = "https://github.com/duniter/subxt.git", branch = "subxt-v0.32.1-duniter-substrate-v0.9.42", features = ["subxt"] }
# sp-api = { git = 'https://github.com/duniter/substrate', branch = 'duniter-substrate-v0.9.42'}
tokio = { version = "1.26.0", features = ["macros"] }
confy = "0.5.1"
scrypt = { version = "0.11", default-features = false } # for old-style key generation
nacl = { version = "0.5.3" } # for old-style key generation
bs58 = "0.5.0"

# 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 = []