diff --git a/Cargo.toml b/Cargo.toml index 0eea28d3..3845fe5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,53 +2,49 @@ resolver = "2" -members = ["basecoin", "basecoin/app", "basecoin/modules", "basecoin/store"] +members = [ "basecoin", "basecoin/app", "basecoin/modules", "basecoin/store" ] [workspace.package] -version = "0.1.0" -license = "Apache-2.0" -edition = "2021" +version = "0.1.0" +license = "Apache-2.0" +edition = "2021" rust-version = "1.64" -readme = "README.md" -repository = "https://github.com/informalsystems/basecoin-rs" -authors = ["Informal Systems "] +readme = "README.md" +repository = "https://github.com/informalsystems/basecoin-rs" +authors = [ "Informal Systems " ] [workspace.dependencies] # external dependencies -base64 = { version = "0.21.6", default-features = false, features = ["alloc"] } -cosmrs = { version = "0.15.0" } -displaydoc = { version = "0.2", default-features = false } -derive_more = { version = "0.99.17", default-features = false, features = [ - "from", - "into", - "display", -] } -ed25519 = { version = "2.1.0", default-features = false } -prost = { version = "0.12", default-features = false } -serde = "1.0" -serde_json = "1.0" -sha2 = "0.10.2" -tonic = "0.11" -tonic-reflection = "0.11" -tracing = "0.1.26" +base64 = { version = "0.21.6", default-features = false, features = [ "alloc" ] } +cosmrs = { version = "0.15.0" } +displaydoc = { version = "0.2", default-features = false } +derive_more = { version = "0.99.17", default-features = false, features = [ "from", "into", "display" ] } +ed25519 = { version = "2.1.0", default-features = false } +prost = { version = "0.12", default-features = false } +serde = "1.0" +serde_json = "1.0" +sha2 = "0.10.2" +tonic = "0.11" +tonic-reflection = "0.11" +tracing = "0.1.26" tracing-subscriber = "0.3.16" # ibc dependencies -ibc = { version = "0.51.0", default-features = false, features = ["serde"] } +ibc = { version = "0.51.0", default-features = false, features = [ "serde" ] } ibc-query = { version = "0.51.0", default-features = false } ibc-proto = { version = "0.43.0", default-features = false } -ics23 = { version = "0.11", default-features = false } +ics23 = { version = "0.11", default-features = false } # tendermint dependencies -tendermint = { version = "0.35", default-features = false } -tendermint-abci = { version = "0.35", default-features = false } +tendermint = { version = "0.35", default-features = false } +tendermint-abci = { version = "0.35", default-features = false } tendermint-proto = { version = "0.35", default-features = false } -tendermint-rpc = { version = "0.35", default-features = false } +tendermint-rpc = { version = "0.35", default-features = false } # tower abci tower-abci = { version = "0.12" } [patch.crates-io] -ibc = { git = "https://github.com/cosmos/ibc-rs", rev = "18375cb" } -ibc-query = { git = "https://github.com/cosmos/ibc-rs", rev = "18375cb" } +ibc = { git = "https://github.com/cosmos/ibc-rs", rev = "18375cb" } +ibc-query = { git = "https://github.com/cosmos/ibc-rs", rev = "18375cb" } tower-abci = { git = "https://github.com/informalsystems/tower-abci", rev = "a4c021b" } diff --git a/basecoin/Cargo.toml b/basecoin/Cargo.toml index 8eaf23c2..396e16c1 100644 --- a/basecoin/Cargo.toml +++ b/basecoin/Cargo.toml @@ -12,46 +12,42 @@ description = """ """ [features] -default = ["v0_37"] -v0_37 = ["basecoin-app/v0_37", "dep:tower-abci"] -v0_38 = ["basecoin-app/v0_38", "dep:tendermint-abci"] +default = [ "v0_37" ] +v0_37 = [ "basecoin-app/v0_37", "dep:tower-abci" ] +v0_38 = [ "basecoin-app/v0_38", "dep:tendermint-abci" ] [dependencies] # external dependencies -bech32 = { version = "0.11.0" } -tiny-bip39 = { version = "1" } -digest = { version = "0.10.7" } -bitcoin = { version = "0.31.2" } -hdpath = { version = "0.6.3" } -clap = { version = "4.5.0", features = ["derive", "wrap_help"] } -generic-array = { version = "0.14.7" } -prost = { workspace = true } -serde = { workspace = true } -serde_derive = { version = "1.0.104", default-features = false } -serde_json = { workspace = true } -secp256k1 = { version = "0.28.2", features = ["serde", "rand-std"] } -sha2 = { workspace = true } -tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] } -tonic = { workspace = true } -tonic-reflection = { workspace = true } -toml = { version = "0.8" } -tracing = { workspace = true } +bech32 = { version = "0.11.0" } +tiny-bip39 = { version = "1" } +digest = { version = "0.10.7" } +bitcoin = { version = "0.31.2" } +hdpath = { version = "0.6.3" } +clap = { version = "4.5.0", features = [ "derive", "wrap_help" ] } +generic-array = { version = "0.14.7" } +prost = { workspace = true } +serde = { workspace = true } +serde_derive = { version = "1.0.104", default-features = false } +serde_json = { workspace = true } +secp256k1 = { version = "0.28.2", features = [ "serde", "rand-std" ] } +sha2 = { workspace = true } +tokio = { version = "1.0", features = [ "macros", "rt-multi-thread" ] } +tonic = { workspace = true } +tonic-reflection = { workspace = true } +toml = { version = "0.8" } +tracing = { workspace = true } tracing-subscriber = { workspace = true } -tower-abci = { workspace = true, optional = true } +tower-abci = { workspace = true, optional = true } # ibc dependencies -ibc = { workspace = true } -ibc-proto = { workspace = true, features = [ - "server", - "proto-descriptor", - "serde", -] } +ibc = { workspace = true } +ibc-proto = { workspace = true, features = [ "server", "proto-descriptor", "serde" ] } # tendermint dependencies tendermint-abci = { workspace = true, optional = true } -tendermint-rpc = { workspace = true, features = ["http-client"] } +tendermint-rpc = { workspace = true, features = [ "http-client" ] } # internal dependencies -basecoin-store = { path = "./store" } +basecoin-store = { path = "./store" } basecoin-modules = { path = "./modules" } -basecoin-app = { path = "./app", default-features = false } +basecoin-app = { path = "./app", default-features = false } diff --git a/basecoin/app/Cargo.toml b/basecoin/app/Cargo.toml index 12dd7130..9282b7cb 100644 --- a/basecoin/app/Cargo.toml +++ b/basecoin/app/Cargo.toml @@ -1,41 +1,41 @@ [package] -name = "basecoin-app" -version = { workspace = true } -edition = { workspace = true } -license = { workspace = true } -readme = { workspace = true } -repository = { workspace = true } -authors = { workspace = true } -description = """ +name = "basecoin-app" +version = { workspace = true } +edition = { workspace = true } +license = { workspace = true } +readme = { workspace = true } +repository = { workspace = true } +authors = { workspace = true } +description = """ Contains a simple implementation of the Tendermint ABCI application. """ [features] -default = ["v0_37"] +default = [ "v0_37" ] # Makes the application compatible with CometBFT v0.37 -v0_37 = ["dep:tower-abci", "dep:tower"] +v0_37 = [ "dep:tower-abci", "dep:tower" ] # Makes the application compatible with CometBFT v0.38 # (WIP) methods are not yet implemented -v0_38 = ["dep:tendermint-abci"] +v0_38 = [ "dep:tendermint-abci" ] [dependencies] # external dependencies -cosmrs = { workspace = true } -ibc-proto = { workspace = true, features = ["server", "proto-descriptor", "serde"] } -prost = { workspace = true } -serde_json = { workspace = true } -tonic = { workspace = true } -tracing = { workspace = true } -tower-abci = { workspace = true, optional = true } -tower = { version = "0.4", features = ["full"], optional = true } +cosmrs = { workspace = true } +ibc-proto = { workspace = true, features = [ "server", "proto-descriptor", "serde" ] } +prost = { workspace = true } +serde_json = { workspace = true } +tonic = { workspace = true } +tracing = { workspace = true } +tower-abci = { workspace = true, optional = true } +tower = { version = "0.4", features = [ "full" ], optional = true } # tedermint dependencies -tendermint = { workspace = true } -tendermint-abci = { workspace = true, optional = true } -tendermint-proto = { workspace = true } +tendermint = { workspace = true } +tendermint-abci = { workspace = true, optional = true } +tendermint-proto = { workspace = true } # internal dependencies -basecoin-store = { path = "../store" } -basecoin-modules = { path = "../modules" } +basecoin-store = { path = "../store" } +basecoin-modules = { path = "../modules" } diff --git a/basecoin/modules/Cargo.toml b/basecoin/modules/Cargo.toml index 13e6a5c1..7febf1a7 100644 --- a/basecoin/modules/Cargo.toml +++ b/basecoin/modules/Cargo.toml @@ -12,35 +12,28 @@ description = """ [dependencies] # external dependencies -base64 = { workspace = true } -cosmrs = { workspace = true } -displaydoc = { workspace = true } -derive_more = { workspace = true } -primitive-types = { version = "0.12.0", default-features = false, features = [ - "serde_no_std", -] } -prost = { workspace = true } -serde = { workspace = true } -serde_derive = { version = "1.0.104", default-features = false } -serde_json = { workspace = true } -sha2 = { workspace = true } -tonic = { workspace = true } -tracing = { workspace = true } +base64 = { workspace = true } +cosmrs = { workspace = true } +displaydoc = { workspace = true } +derive_more = { workspace = true } +primitive-types = { version = "0.12.0", default-features = false, features = [ "serde_no_std" ] } +prost = { workspace = true } +serde = { workspace = true } +serde_derive = { version = "1.0.104", default-features = false } +serde_json = { workspace = true } +sha2 = { workspace = true } +tonic = { workspace = true } +tracing = { workspace = true } # ibc dependencies -ibc = { workspace = true } -ibc-proto = { workspace = true, features = [ - "client", - "server", - "proto-descriptor", - "serde", -] } +ibc = { workspace = true } +ibc-proto = { workspace = true, features = [ "client", "server", "proto-descriptor", "serde" ] } ibc-query = { workspace = true } -ics23 = { workspace = true, features = ["host-functions"] } +ics23 = { workspace = true, features = [ "host-functions" ] } # tendermint dependencies -tendermint = { workspace = true } -tendermint-rpc = { workspace = true, features = ["http-client"] } +tendermint = { workspace = true } +tendermint-rpc = { workspace = true, features = [ "http-client" ] } # internal dependencies basecoin-store = { path = "../store" } diff --git a/basecoin/store/Cargo.toml b/basecoin/store/Cargo.toml index 7bab0e5c..09a116b9 100644 --- a/basecoin/store/Cargo.toml +++ b/basecoin/store/Cargo.toml @@ -1,21 +1,21 @@ [package] -name = "basecoin-store" -version = { workspace = true } -edition = { workspace = true } -license = { workspace = true } -readme = { workspace = true } -repository = { workspace = true } -authors = { workspace = true } +name = "basecoin-store" +version = { workspace = true } +edition = { workspace = true } +license = { workspace = true } +readme = { workspace = true } +repository = { workspace = true } +authors = { workspace = true } description = """ A simple implementation of an AVL store tailored for the basecoin application. """ [dependencies] -displaydoc = { workspace = true } -ics23 = { workspace = true, features = ["host-functions"] } -prost = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } -sha2 = { workspace = true } -tendermint = { workspace = true } -tracing = { workspace = true } +displaydoc = { workspace = true } +ics23 = { workspace = true, features = [ "host-functions" ] } +prost = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +sha2 = { workspace = true } +tendermint = { workspace = true } +tracing = { workspace = true }