Skip to content

Commit

Permalink
format toml
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 26, 2024
1 parent bb073ec commit acfe23d
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 124 deletions.
56 changes: 26 additions & 30 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
readme = "README.md"
repository = "https://github.com/informalsystems/basecoin-rs"
authors = [ "Informal Systems <[email protected]>" ]

[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" }
58 changes: 27 additions & 31 deletions basecoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
48 changes: 24 additions & 24 deletions basecoin/app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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" }
41 changes: 17 additions & 24 deletions basecoin/modules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
30 changes: 15 additions & 15 deletions basecoin/store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit acfe23d

Please sign in to comment.