Skip to content

Commit

Permalink
Pull out all deps into workspace Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hu55a1n1 committed May 29, 2024
1 parent 7237847 commit 341e699
Show file tree
Hide file tree
Showing 14 changed files with 353 additions and 422 deletions.
272 changes: 19 additions & 253 deletions Cargo.lock

Large diffs are not rendered by default.

73 changes: 72 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,76 @@ members = [
"cosmwasm/packages/*",
"utils/*",
]

exclude = ["apps/mtcs/contracts/cw-tee-mtcs"]

[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.71.1"
license = ""
readme = "README.md"
repository = "https://github.com/informalsystems/cycles-quartz"
authors = ["Informal Systems <[email protected]>"]

[workspace.dependencies]
# external
async-trait = "0.1.79"
bip32 = { version = "0.5.1", features = ["alloc"] }
clap = { version = "4.1.8", features = ["derive"] }
color-eyre = "0.6.2"
der = { version = "0.7.9", default-features = false }
displaydoc = { version = "0.2.4", default-features = false }
ecies = { version = "0.2.3", default-features = false, features = ["pure"] }
futures = "0.3.27"
hex = { version = "0.4.3", default-features = false }
hex-literal = "0.4.1"
k256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "alloc"] }
num-bigint = "0.4.4"
prost = { version = "0.12.3", default-features = false }
rand = "0.8.5"
rand_core = { version = "0.6", features = ["std"] }
reqwest = { version = "0.12.2", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1.0.189", features = ["derive"] }
serde_json = "1.0.94"
serde_with = { version = "3.4.0", default-features = false, features = ["hex", "macros"] }
sha2 = "0.10.8"
subtle-encoding = { version = "0.5.1", features = ["bech32-preview"] }
tempfile = "3"
thiserror = "1.0.49"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
tonic = "0.11"
tonic-build = "0.11"
tracing = "0.1.39"
tracing-subscriber = "0.3.17"
uuid = { version = "1.4.1", features = ["serde"] }
x509-cert = { version = "0.2.5", default-features = false }
zeroize = { version = "1.7.0", default-features = false }

# cosmos
cosmos-sdk-proto = "=0.16.0"
cosmrs = { version = "=0.11.0", default-features = false }
cosmwasm-schema = "1.4.0"
cosmwasm-std = "1.5.2"
cw-storage-plus = "1.1.0"
ics23 = { version = "0.11.0", default-features = false, features = ["host-functions"] }
tendermint = { version = "=0.34.0", default-features = false }
tendermint-light-client = { version = "=0.34.0", default-features = false, features = ["rust-crypto"] }
tendermint-light-client-detector = "=0.34.0"
tendermint-rpc = { version = "=0.34.0", default-features = false, features = ["http-client"] }

# mobilecoin
mc-sgx-core-types = { git = "https://github.com/informalsystems/sgx" }
mc-sgx-dcap-types = { git = "https://github.com/informalsystems/sgx" }
mc-sgx-dcap-sys-types = { git = "https://github.com/informalsystems/sgx" }
mc-attestation-verifier = { git = "https://github.com/informalsystems/attestation" }

# quartz
cw-proof = { path = "core/light-client-proofs/cw-proof" }
cw-tee-mtcs = { path = "apps/mtcs/contracts/cw-tee-mtcs" }
cycles-sync = { path = "utils/cycles-sync" }
mtcs = { git = "ssh://[email protected]/informalsystems/mtcs.git" }
quartz-cw = { path = "cosmwasm/packages/quartz-cw" }
quartz-proto = { path = "core/quartz-proto" }
quartz-relayer = { path = "relayer" }
quartz-tee-ra = { path = "cosmwasm/packages/quartz-tee-ra" }
tm-stateless-verifier = { path = "core/light-client-proofs/tm-stateless-verifier" }
2 changes: 0 additions & 2 deletions apps/mtcs/contracts/cw-tee-mtcs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ exclude = [
"hash.txt",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib", "rlib"]

Expand Down
33 changes: 21 additions & 12 deletions core/light-client-proofs/cw-proof/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
[package]
name = "cw-proof"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "cosmwasm", "cycles", "quartz"]
readme = "README.md"

[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
cosmrs = { version = "0.15.0", default-features = false }
displaydoc = { version = "0.2.4", default-features = false }
ics23 = { version = "0.11.0", default-features = false, features = ["host-functions"] }
prost = { version = "0.12.3", default-features = false }
serde = { version = "1.0.189", features = ["derive"] }
serde_with = { version = "3.4.0", default-features = false, features = ["hex", "macros"] }
tendermint = { version = "0.34.0", default-features = false }
tendermint-rpc = { version = "0.34.0", default-features = false, features = ["http-client"] }
# external
clap.workspace = true
displaydoc.workspace = true
prost.workspace = true
serde.workspace = true
serde_with.workspace = true

# cosmos
cosmrs.workspace = true
ics23.workspace = true
tendermint.workspace = true
tendermint-rpc.workspace = true

[dev-dependencies]
hex = { version = "0.4.3", default-features = false }
hex.workspace = true
19 changes: 14 additions & 5 deletions core/light-client-proofs/tm-stateless-verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
[package]
name = "tm-stateless-verifier"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "tendermint", "cycles", "quartz"]
readme = "README.md"

[dependencies]
displaydoc = { version = "0.2.4", default-features = false }
tendermint = { version = "=0.34.0", default-features = false }
tendermint-light-client = { version = "=0.34.0", default-features = false, features = ["rust-crypto"] }
# external
displaydoc.workspace = true

# cosmos
tendermint.workspace = true
tendermint-light-client.workspace = true
17 changes: 12 additions & 5 deletions core/quartz-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
[package]
name = "quartz-proto"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "tendermint", "cycles", "quartz"]
readme = "README.md"

[dependencies]
prost = "0.12"
tonic = "0.11"
# external
prost.workspace = true
tonic.workspace = true

[build-dependencies]
tonic-build = "0.11"
tonic-build.workspace = true
64 changes: 37 additions & 27 deletions core/quartz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,44 @@
[package]
name = "quartz-enclave"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "tendermint", "cycles", "quartz"]
readme = "README.md"

[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
color-eyre = "0.6.2"
cosmrs = "0.16.0"
cosmwasm-std = "1.5.2"
ecies = { version = "0.2.3", default-features = false, features = ["pure"] }
k256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "alloc"] }
prost = "0.12"
rand = "0.8.5"
serde = { version = "1.0.189", features = ["derive"] }
serde_json = "1.0.94"
tendermint = "0.34.0"
tendermint-light-client = "0.34.0"
tonic = "0.11"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
# external
clap.workspace = true
color-eyre.workspace = true
ecies.workspace = true
hex.workspace = true
k256.workspace = true
prost.workspace = true
rand.workspace = true
serde.workspace = true
serde_json.workspace = true
tonic.workspace = true
tokio.workspace = true

cw-proof = { path = "../light-client-proofs/cw-proof" }
cw-tee-mtcs = { path = "../../apps/mtcs/contracts/cw-tee-mtcs" }
cycles-sync = { path = "../../utils/cycles-sync" }
mtcs = { git = "ssh://[email protected]/informalsystems/mtcs.git" }
quartz-cw = { path = "../../cosmwasm/packages/quartz-cw" }
quartz-proto = { path = "../quartz-proto" }
quartz-relayer = { path = "../../relayer" }
quartz-tee-ra = { path = "../../cosmwasm/packages/quartz-tee-ra" }
tm-stateless-verifier = { path = "../light-client-proofs/tm-stateless-verifier" }
hex = "0.4.3"
# cosmos
cosmrs.workspace = true
cosmwasm-std.workspace = true
tendermint.workspace = true
tendermint-light-client.workspace = true

# quartz
cw-proof.workspace = true
cw-tee-mtcs.workspace = true
cycles-sync.workspace = true
mtcs.workspace = true
quartz-cw.workspace = true
quartz-proto.workspace = true
quartz-relayer.workspace = true
quartz-tee-ra.workspace = true
tm-stateless-verifier.workspace = true

[build-dependencies]
tonic-build = "0.11"
tonic-build.workspace = true
34 changes: 22 additions & 12 deletions cosmwasm/packages/quartz-cw/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
[package]
name = "quartz-cw"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "cosmwasm", "cycles", "quartz"]
readme = "README.md"

[dependencies]
cw-storage-plus = "1.1.0"
cosmwasm-schema = "1.4.0"
cosmwasm-std = "1.4.0"
k256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "alloc"] }
serde = { version = "1.0.188", default-features = false, features = ["derive"] }
serde_json = "1.0.94"
sha2 = "0.10.8"
thiserror = "1.0.57"
# external
k256.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
thiserror.workspace = true

quartz-tee-ra = { path = "../../packages/quartz-tee-ra" }
# cosmos
cw-storage-plus.workspace = true
cosmwasm-schema.workspace = true
cosmwasm-std.workspace = true

# quartz
quartz-tee-ra.workspace = true

[dev-dependencies]
serde_json = "1.0.113"
serde_json.workspace = true
48 changes: 28 additions & 20 deletions cosmwasm/packages/quartz-tee-ra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
[package]
name = "quartz-tee-ra"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "cosmwasm", "cycles", "quartz"]
readme = "README.md"

[dependencies]
cosmwasm-schema = "1.4.0"
cosmwasm-std = "1.4.0"
hex-literal = "0.4.1"
num-bigint = "0.4.4"
serde_json = "1.0.108"
sha2 = "0.10.8"
thiserror = { version = "1.0.49" }
# external
der.workspace = true
displaydoc.workspace = true
hex-literal.workspace = true
num-bigint.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
thiserror.workspace = true
x509-cert.workspace = true
zeroize.workspace = true

# mobilecoin
mc-attestation-verifier.workspace = true
mc-sgx-core-types.workspace = true
mc-sgx-dcap-types.workspace = true
mc-sgx-dcap-sys-types.workspace = true

der = { version = "0.7.9", default-features = false }
displaydoc = { version = "0.2.4", default-features = false }
mc-sgx-core-types = { git = "https://github.com/informalsystems/sgx" }
mc-sgx-dcap-types = { git = "https://github.com/informalsystems/sgx" }
mc-sgx-dcap-sys-types = { git = "https://github.com/informalsystems/sgx" }
mc-attestation-verifier = { git = "https://github.com/informalsystems/attestation" }
serde = { version = "1.0.198", default-features = false }
x509-cert = { version = "0.2.5", default-features = false }
zeroize = { version = "1.7.0", default-features = false }
# cosmos
cosmwasm-schema.workspace = true
cosmwasm-std.workspace = true
50 changes: 30 additions & 20 deletions relayer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
[package]
name = "quartz-relayer"
version = "0.1.0"
edition = "2021"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
keywords = ["blockchain", "cosmos", "tendermint", "cycles", "quartz"]
readme = "README.md"

[dependencies]
clap = { version = "4.1.8", features = ["derive"] }
cosmos-sdk-proto = "0.16.0"
cosmrs = { version = "=0.11.0", features = ["cosmwasm"] }
cosmwasm-std = "1.5.2"
displaydoc = { version = "0.2.3", default-features = false }
ecies = { version = "0.2.6", default-features = false, features = ["pure"] }
k256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "alloc"] }
serde = { version = "1.0.189", features = ["derive"] }
serde_json = "1.0.94"
subtle-encoding = { version = "0.5.1", features = ["bech32-preview"] }
tempfile = "3"
tendermint = { version = "0.29.0", features = ["secp256k1"] }
thiserror = "1.0.38"
tonic = "=0.8.3"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
# external
clap.workspace = true
displaydoc.workspace = true
ecies.workspace = true
k256.workspace = true
serde.workspace = true
serde_json.workspace = true
subtle-encoding.workspace = true
tempfile.workspace = true
thiserror.workspace = true
tonic.workspace = true
tokio.workspace = true

quartz-cw = { path = "../cosmwasm/packages/quartz-cw" }
quartz-tee-ra = { path = "../cosmwasm/packages/quartz-tee-ra" }
quartz-proto = { path = "../core/quartz-proto" }
# cosmos
cosmos-sdk-proto.workspace = true
cosmrs = { workspace = true, features = ["cosmwasm"] }
cosmwasm-std.workspace = true
tendermint = { workspace = true, features = ["secp256k1"] }

# quartz
quartz-cw.workspace = true
quartz-tee-ra.workspace = true
quartz-proto.workspace = true
Loading

0 comments on commit 341e699

Please sign in to comment.