[package]
name = "grin"
version = "0.3.0"
authors = ["Grin Developers <mimblewimble@lists.launchpad.net>"]
exclude = ["**/*.grin", "**/*.grin2"]
publish = false
autobins = false
build = "src/build/build.rs"

[workspace]
members = ["api", "chain", "config", "core", "keychain", "p2p", "servers", "store", "util", "pool", "wallet"]

[[bin]]
name = "grin"
path = "src/bin/grin.rs"

[dependencies]
blake2-rfc = "0.2"
chrono = "0.4.4"
clap = "2.31"
ctrlc = { version = "3.1", features = ["termination"] }
cursive = "0.9.0"
daemonize = "0.3"
serde = "1"
serde_json = "1"
slog = { version = "~2.2", features = ["max_level_trace", "release_max_level_trace"] }
term = "0.5"

grin_api = { path = "./api" }
grin_config = { path = "./config" }
grin_core = { path = "./core" }
grin_keychain = { path = "./keychain" }
grin_p2p = { path = "./p2p"}
grin_servers = { path = "./servers" }
grin_util = { path = "./util"}
grin_wallet = { path = "./wallet" }

# TODO - once "patch" is available we should be able to clean up the workspace dependencies
# [patch.crate-io]
# secp256k1zkp = { git = "https://github.com/mimblewimble/rust-secp256k1-zkp" }

[build-dependencies]
built = "0.3"
reqwest = "0.7"
flate2 = "1.0"
tar = "0.4"
