From 7750bc8b7282d018523ef39c0e2180e36a0c924b Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Sun, 11 Jun 2023 08:36:20 +0900 Subject: [PATCH] remove unused dependencies Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 17 ------- Cargo.lock | 41 ----------------- Makefile | 12 +++-- app/Cargo.toml | 3 -- enclave-modules/ecall-handler/Cargo.toml | 6 --- enclave-modules/remote-attestation/Cargo.toml | 5 -- enclave-modules/runtime/Cargo.toml | 5 -- enclave-modules/store/Cargo.toml | 6 --- enclave/Cargo.lock | 46 ------------------- enclave/Cargo.toml | 3 -- modules/attestation-report/Cargo.toml | 3 -- modules/commitments/Cargo.toml | 1 - modules/context/Cargo.toml | 4 -- modules/ecall-commands/Cargo.toml | 1 - modules/enclave-api/Cargo.toml | 3 -- modules/ibc-client/Cargo.toml | 4 -- modules/light-client/Cargo.toml | 2 - modules/mock-lc/Cargo.toml | 5 -- modules/relay/tendermint/Cargo.toml | 1 - modules/service/Cargo.toml | 2 - modules/tendermint-lc/Cargo.toml | 6 --- modules/types/Cargo.toml | 1 - modules/validation-context/Cargo.toml | 1 - proto-compiler/Cargo.toml | 1 - proto/Cargo.toml | 2 - tools/cgen/Cargo.toml | 5 -- 26 files changed, 7 insertions(+), 179 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index deaab479..11e24021 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,23 +18,6 @@ jobs: - run: make lint-tools - run: make lint - udeps: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - - uses: datachainlab/rust-cache@allow_registry_src_caching - with: - workspaces: | - . - ./enclave - cache-directories: | - ~/.cargo/registry/src/**/librocksdb-sys-* - - run: make lint-tools - - run: make udeps - relayer: runs-on: ubuntu-22.04 steps: diff --git a/Cargo.lock b/Cargo.lock index 6973c229..34dd9fd9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,14 +206,12 @@ dependencies = [ "flex-error", "hex", "lcp-types", - "log 0.4.17", "pem 0.8.2", "pem 1.1.0", "rustls 0.19.0", "rustls 0.19.1", "serde", "serde_json", - "sgx_tstd", "sgx_types", "tendermint 0.29.0", "webpki 0.21.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -699,20 +697,15 @@ dependencies = [ "host-environment", "ibc", "ibc-proto 0.26.0", - "ibc-relayer", "ibc-test-framework", "lcp-types", "log 0.4.17", - "ocall-handler", - "once_cell 1.17.1", - "prost-types", "relay-tendermint", "rlp", "serde", "serde_json", "store", "tempdir", - "tendermint-rpc", "tokio", ] @@ -840,7 +833,6 @@ dependencies = [ "hex", "ibc", "lcp-types", - "log 0.4.17", "prost", "prost-types", "rand 0.8.5", @@ -877,9 +869,6 @@ dependencies = [ "lcp-types", "light-client", "light-client-registry", - "log 0.4.17", - "prost-types", - "serde", "store", ] @@ -1340,7 +1329,6 @@ dependencies = [ "lcp-proto", "lcp-types", "serde", - "serde_json", "store", ] @@ -1439,11 +1427,8 @@ dependencies = [ "ecall-commands", "flex-error", "host", - "host-environment", "lcp-proto", "log 0.4.17", - "prost", - "prost-types", "sgx_types", "sgx_urts", "store", @@ -2634,8 +2619,6 @@ dependencies = [ "serde_json", "service", "settings", - "sgx_types", - "sgx_urts", "sha2 0.10.6", "store", "tokio", @@ -2656,16 +2639,12 @@ dependencies = [ "lcp-types", "light-client", "light-client-registry", - "log 0.4.17", "mock-lc", "prost", "prost-types", "serde", - "serde_json", "store", "tempdir", - "tendermint-proto 0.29.0", - "tiny-keccak 1.5.0", "validation-context", ] @@ -2673,8 +2652,6 @@ dependencies = [ name = "lcp-proto" version = "0.1.0" dependencies = [ - "base64 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes", "ibc", "ibc-proto 0.26.0", "prost", @@ -2695,7 +2672,6 @@ dependencies = [ "serde_json", "sgx_tstd", "tendermint 0.29.0", - "tendermint-proto 0.29.0", ] [[package]] @@ -2789,8 +2765,6 @@ dependencies = [ "ibc", "ibc-proto 0.26.0", "lcp-types", - "prost", - "prost-types", "serde", "store", ] @@ -2946,12 +2920,7 @@ dependencies = [ "lcp-types", "light-client", "light-client-registry", - "log 0.4.17", - "prost", - "prost-types", "serde", - "sha2 0.10.6", - "time", "validation-context", ] @@ -3895,7 +3864,6 @@ dependencies = [ "ibc-relayer", "ibc-relayer-types", "lcp-types", - "prost-types", "tendermint-light-client-verifier 0.28.0", "tendermint-rpc", "tokio", @@ -4568,9 +4536,7 @@ dependencies = [ "anyhow", "attestation-report", "enclave-api", - "host", "lcp-proto", - "log 0.4.17", "serde_json", "settings", "store", @@ -5117,13 +5083,7 @@ dependencies = [ "light-client", "light-client-registry", "log 0.4.17", - "prost", - "prost-types", "serde", - "sha2 0.10.6", - "tendermint-light-client-verifier 0.29.0", - "tendermint-proto 0.29.0", - "time", "validation-context", ] @@ -5872,7 +5832,6 @@ dependencies = [ "lcp-types", "rlp", "serde", - "tendermint-light-client-verifier 0.29.0", ] [[package]] diff --git a/Makefile b/Makefile index 9e0cc059..040a8afc 100644 --- a/Makefile +++ b/Makefile @@ -188,6 +188,11 @@ proto: ######## Lint ######## +.PHONY: udeps-tools +lint-tools: + rustup component add rustfmt clippy + cargo install cargo-machete + .PHONY: fmt fmt: @cargo fmt --all $(CARGO_FMT_OPT) && cd ./enclave && cargo fmt --all $(CARGO_FMT_OPT) @@ -196,14 +201,11 @@ fmt: lint: @$(MAKE) CARGO_FMT_OPT=--check fmt @cargo clippy --locked --tests $(CARGO_TARGET) -- -D warnings - -.PHONY: udeps-tools -lint-tools: - rustup component add rustfmt clippy - cargo +nightly install cargo-udeps --locked + @cargo machete .PHONY: udeps udeps: + @cargo +nightly install cargo-udeps --locked @cargo +nightly udeps --locked --lib --tests $(CARGO_TARGET) ######## Tools ######## diff --git a/app/Cargo.toml b/app/Cargo.toml index ab76efb8..f7456806 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -8,9 +8,6 @@ description = """ """ [dependencies] -sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } -sgx_urts = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } - log = "0.4.8" env_logger = "0.9.0" hex = { version = "0.4", default-features = false, features = ["alloc"] } diff --git a/enclave-modules/ecall-handler/Cargo.toml b/enclave-modules/ecall-handler/Cargo.toml index 971d2f85..3f4e1a7f 100644 --- a/enclave-modules/ecall-handler/Cargo.toml +++ b/enclave-modules/ecall-handler/Cargo.toml @@ -5,23 +5,17 @@ edition = "2021" [dependencies] sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } -prost-types = { version = "0.11", default-features = false } -serde = { version = "1.0", default-features = false, features = ["alloc"] } hex = { version = "0.4", default-features = false, features = ["alloc"] } -log = { version = "0.4.8", default-features = false } flex-error = { version = "0.4.4", default-features = false } -enclave-utils = { path = "../utils" } enclave-remote-attestation = { path = "../remote-attestation" } crypto = { path = "../../modules/crypto", default-features = false, features = ["sgx"] } attestation-report = { path = "../../modules/attestation-report", default-features = false, features = ["sgx"] } context = { path = "../../modules/context", default-features = false } enclave-environment = { path = "../environment", default-features = false } -bincode = { git = "https://github.com/bluele/bincode-sgx", branch = "serde" } lcp-types = { path = "../../modules/types", default-features = false } light-client-registry = { path = "../../modules/light-client-registry", default-features = false } -settings = { path = "../../modules/settings", default-features = false } ecall-commands = { path = "../../modules/ecall-commands", default-features = false } commitments = { path = "../../modules/commitments", default-features = false, features = ["prover"] } light-client = { path = "../../modules/light-client", default-features = false } diff --git a/enclave-modules/remote-attestation/Cargo.toml b/enclave-modules/remote-attestation/Cargo.toml index ba585091..a7a4ee86 100644 --- a/enclave-modules/remote-attestation/Cargo.toml +++ b/enclave-modules/remote-attestation/Cargo.toml @@ -6,16 +6,12 @@ edition = "2021" [dependencies] sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } sgx_tstd = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk", features = ["net"] } -sgx_trts = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } sgx_tse = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } sgx_tcrypto = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } -serde = { version = "1.0", default-features = false, features = ["alloc"] } -serde_json = { version = "1.0", default-features = false, features = ["alloc"] } itertools = { version = "0.8", default-features = false, features = [] } log = { version = "0.4.8", default-features = false } base64 = { git = "https://github.com/marshallpierce/rust-base64", default-features = false, features = ["alloc"] } -hex = { version = "0.4", default-features = false, features = ["alloc"] } httparse = { version = "1.3", default-features = false } chrono = { version = "0.4.19", default-features = false, features = ["alloc"]} flex-error = { version = "0.4.4", default-features = false } @@ -23,7 +19,6 @@ flex-error = { version = "0.4.4", default-features = false } webpki = { git = "https://github.com/mesalock-linux/webpki", branch = "mesalock_sgx" } webpki-roots = { git = "https://github.com/mesalock-linux/webpki-roots", rev = "6ff3be547ac13ccd46ae55605ad6506ce30688ef" } rustls = { git = "https://github.com/mesalock-linux/rustls", branch = "mesalock_sgx" } -bincode = { git = "https://github.com/bluele/bincode-sgx", branch = "serde" } host-api = { path = "../host-api" } diff --git a/enclave-modules/runtime/Cargo.toml b/enclave-modules/runtime/Cargo.toml index 18ee1d78..a387f134 100644 --- a/enclave-modules/runtime/Cargo.toml +++ b/enclave-modules/runtime/Cargo.toml @@ -7,19 +7,14 @@ edition = "2021" sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } sgx_tstd = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } log = { version = "0.4.8", default-features = false } -lazy_static = { version = "1.1.0", features = ["spin_no_std"] } bincode = { git = "https://github.com/bluele/bincode-sgx", branch = "serde" } flex-error = { version = "0.4.4", default-features = false } once_cell = { version = "1.15.0", default-features = false, features = ["alloc"] } enclave-utils = { path = "../utils" } -enclave-store = { path = "../store" } ecall-handler = { path = "../ecall-handler" } enclave-environment = { path = "../environment" } crypto = { path = "../../modules/crypto", default-features = false, features = ["sgx"] } -light-client-registry = { path = "../../modules/light-client-registry", default-features = false, features = ["sgx"] } - -store = { path = "../../modules/store", default-features = false } ecall-commands = { path = "../../modules/ecall-commands", default-features = false } [features] diff --git a/enclave-modules/store/Cargo.toml b/enclave-modules/store/Cargo.toml index 6556b21c..1788bad8 100644 --- a/enclave-modules/store/Cargo.toml +++ b/enclave-modules/store/Cargo.toml @@ -3,12 +3,6 @@ name = "enclave-store" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -flex-error = { version = "0.4.4", default-features = false } - host-api = { path = "../host-api" } - store = { path = "../../modules/store", default-features = false } -ocall-commands = { path = "../../modules/ocall-commands", default-features = false } diff --git a/enclave/Cargo.lock b/enclave/Cargo.lock index 4cdfcdd8..fa1e2c3e 100644 --- a/enclave/Cargo.lock +++ b/enclave/Cargo.lock @@ -45,7 +45,6 @@ dependencies = [ "rustls", "serde", "serde_json", - "sgx_tstd", "sgx_types", "tendermint", "webpki", @@ -259,7 +258,6 @@ dependencies = [ "flex-error", "hex", "lcp-types", - "log 0.4.17", "prost", "rlp", "serde", @@ -275,9 +273,6 @@ dependencies = [ "lcp-types", "light-client", "light-client-registry", - "log 0.4.17", - "prost-types", - "serde", "store", ] @@ -455,7 +450,6 @@ dependencies = [ "lcp-proto", "lcp-types", "serde", - "serde_json", "store", ] @@ -464,23 +458,17 @@ name = "ecall-handler" version = "0.1.0" dependencies = [ "attestation-report", - "bincode 1.3.1", "commitments", "context", "crypto", "ecall-commands", "enclave-environment", "enclave-remote-attestation", - "enclave-utils", "flex-error", "hex", "lcp-types", "light-client", "light-client-registry", - "log 0.4.17", - "prost-types", - "serde", - "settings", "sgx_types", "store", ] @@ -519,12 +507,10 @@ version = "0.1.0" dependencies = [ "enclave-environment", "enclave-runtime", - "enclave-store", "light-client-registry", "log 0.4.17", "sgx_tstd", "simple_logger", - "store", "tendermint-lc", ] @@ -544,11 +530,9 @@ version = "0.1.0" dependencies = [ "attestation-report", "base64 0.20.0-alpha.1", - "bincode 1.3.1", "chrono", "crypto", "flex-error", - "hex", "host-api", "httparse", "itertools 0.8.2", @@ -556,11 +540,8 @@ dependencies = [ "log 0.4.17", "ocall-commands", "rustls", - "serde", - "serde_json", "settings", "sgx_tcrypto", - "sgx_trts", "sgx_tse", "sgx_tstd", "sgx_types", @@ -577,25 +558,19 @@ dependencies = [ "ecall-commands", "ecall-handler", "enclave-environment", - "enclave-store", "enclave-utils", "flex-error", - "lazy_static", - "light-client-registry", "log 0.4.17", "once_cell 1.16.0", "sgx_tstd", "sgx_types", - "store", ] [[package]] name = "enclave-store" version = "0.1.0" dependencies = [ - "flex-error", "host-api", - "ocall-commands", "store", ] @@ -941,21 +916,10 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -dependencies = [ - "spin", -] - [[package]] name = "lcp-proto" version = "0.1.0" dependencies = [ - "base64 0.13.1", - "bytes", "ibc-proto", "prost", "serde", @@ -973,7 +937,6 @@ dependencies = [ "serde_json", "sgx_tstd", "tendermint", - "tendermint-proto", ] [[package]] @@ -1022,8 +985,6 @@ dependencies = [ "ibc", "ibc-proto", "lcp-types", - "prost", - "prost-types", "serde", "store", ] @@ -1880,13 +1841,7 @@ dependencies = [ "light-client", "light-client-registry", "log 0.4.17", - "prost", - "prost-types", "serde", - "sha2 0.10.6", - "tendermint-light-client-verifier", - "tendermint-proto", - "time", "validation-context", ] @@ -2042,7 +1997,6 @@ dependencies = [ "lcp-types", "rlp", "serde", - "tendermint-light-client-verifier", ] [[package]] diff --git a/enclave/Cargo.toml b/enclave/Cargo.toml index b75d1251..d3935946 100644 --- a/enclave/Cargo.toml +++ b/enclave/Cargo.toml @@ -22,9 +22,6 @@ simple_logger = { git = "https://github.com/bluele/rust-simple_logger", branch = enclave-runtime = { path = "../enclave-modules/runtime" } light-client-registry = { path = "../modules/light-client-registry", default-features = false, features = ["sgx"] } enclave-environment = { path = "../enclave-modules/environment" } -enclave-store = { path = "../enclave-modules/store" } - -store = { path = "../modules/store", default-features = false } tendermint-lc = { path = "../modules/tendermint-lc", default-features = false } [patch."https://github.com/apache/teaclave-sgx-sdk.git"] diff --git a/modules/attestation-report/Cargo.toml b/modules/attestation-report/Cargo.toml index 77a94412..37425979 100644 --- a/modules/attestation-report/Cargo.toml +++ b/modules/attestation-report/Cargo.toml @@ -4,10 +4,8 @@ version = "0.1.0" edition = "2021" [dependencies] -sgx_tstd = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk", optional = true } sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk", features = ["extra_traits"] } tendermint = { version = "0.29", default-features = false } -log = { version = "0.4.8", default-features = false, optional = true } chrono = { version = "0.4.19", default-features = false, features = ["alloc"]} serde = { version = "1.0", default-features = false, features = ["alloc"] } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } @@ -32,7 +30,6 @@ std = [ "webpki" ] sgx = [ - "sgx_tstd", "pem_sgx", "rustls_sgx", "webpki_sgx" diff --git a/modules/commitments/Cargo.toml b/modules/commitments/Cargo.toml index 469c10ff..61ebe4bb 100644 --- a/modules/commitments/Cargo.toml +++ b/modules/commitments/Cargo.toml @@ -6,7 +6,6 @@ edition = "2021" [dependencies] serde = { version = "1.0", default-features = false, features = ["alloc"] } prost = { version = "0.11", default-features = false } -log = { version = "0.4.8", default-features = false } hex = { version = "0.4", default-features = false, features = ["alloc"] } sha2 = { version = "0.10.6", default-features = false } rlp = { version = "0.5.1", default-features = false } diff --git a/modules/context/Cargo.toml b/modules/context/Cargo.toml index eafe8be9..8e3639a7 100644 --- a/modules/context/Cargo.toml +++ b/modules/context/Cargo.toml @@ -4,10 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -prost-types = { version = "0.11", default-features = false } -serde = { version = "1.0", default-features = false, features = ["alloc"] } -log = { version = "0.4.8", default-features = false } - lcp-types = { path = "../types", default-features = false } store = { path = "../store", default-features = false } crypto = { path = "../crypto", default-features = false } diff --git a/modules/ecall-commands/Cargo.toml b/modules/ecall-commands/Cargo.toml index 6aec3c8b..8bd9efc1 100644 --- a/modules/ecall-commands/Cargo.toml +++ b/modules/ecall-commands/Cargo.toml @@ -5,7 +5,6 @@ edition = "2021" [dependencies] serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } -serde_json = { version = "1.0", default-features = false, features = ["alloc"] } flex-error = { version = "0.4.4", default-features = false } commitments = { path = "../commitments", default-features = false } diff --git a/modules/enclave-api/Cargo.toml b/modules/enclave-api/Cargo.toml index 4dff8255..e4343eab 100644 --- a/modules/enclave-api/Cargo.toml +++ b/modules/enclave-api/Cargo.toml @@ -6,8 +6,6 @@ edition = "2021" [dependencies] sgx_types = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } sgx_urts = { rev = "v1.1.6", git = "https://github.com/apache/incubator-teaclave-sgx-sdk" } -prost = { version = "0.11", default-features = false } -prost-types = { version = "0.11", default-features = false } bincode = "1.3" log = "0.4.8" flex-error = { version = "0.4.4" } @@ -16,7 +14,6 @@ ecall-commands = { path = "../ecall-commands", features = ["std"] } lcp-proto = { path = "../../proto", features = ["server"] } store = { path = "../store" } host = { path = "../host" } -host-environment = { path = "../host-environment" } [features] default = ["rocksdb"] diff --git a/modules/ibc-client/Cargo.toml b/modules/ibc-client/Cargo.toml index cdca796a..837effe0 100644 --- a/modules/ibc-client/Cargo.toml +++ b/modules/ibc-client/Cargo.toml @@ -6,14 +6,10 @@ edition = "2021" [dependencies] ibc = { version = "0.29.0", default-features = false, features = ["serde"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } -tendermint-proto = { version = "0.29", default-features = false } prost = { version = "0.11", default-features = false } prost-types = { version = "0.11", default-features = false } -tiny-keccak = "1.4" serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } -serde_json = { version = "1.0", default-features = false, features = ["alloc"] } flex-error = { version = "0.4.4", default-features = false } -log = { version = "0.4.8", default-features = false } lcp-types = { path = "../types", default-features = false } commitments = { path = "../commitments", default-features = false } diff --git a/modules/light-client/Cargo.toml b/modules/light-client/Cargo.toml index 1ea7fb27..d34fbebd 100644 --- a/modules/light-client/Cargo.toml +++ b/modules/light-client/Cargo.toml @@ -4,8 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -prost = { version = "0.11", default-features = false } -prost-types = { version = "0.11", default-features = false } flex-error = { version = "0.4.4", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc"] } derive_more = { version = "0.99.0", default-features = false } diff --git a/modules/mock-lc/Cargo.toml b/modules/mock-lc/Cargo.toml index 3671c09e..7701dc79 100644 --- a/modules/mock-lc/Cargo.toml +++ b/modules/mock-lc/Cargo.toml @@ -6,12 +6,7 @@ edition = "2021" [dependencies] ibc = { version = "0.29.0", default-features = false, features = ["serde", "mocks-no-std"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } -prost = { version = "0.11", default-features = false } -prost-types = { version = "0.11", default-features = false } -sha2 = { version = "0.10.6", default-features = false } -time = { version = "0.3", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc"] } -log = { version = "0.4.8", default-features = false } flex-error = { version = "0.4.4", default-features = false } lcp-types = { path = "../types", default-features = false } diff --git a/modules/relay/tendermint/Cargo.toml b/modules/relay/tendermint/Cargo.toml index 36c7654f..0cc54e03 100644 --- a/modules/relay/tendermint/Cargo.toml +++ b/modules/relay/tendermint/Cargo.toml @@ -4,7 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -prost-types = { version = "0.11", default-features = false } ibc = { version = "0.29.0", default-features = false, features = ["serde"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } ibc-proto-relayer = { package = "ibc-proto", version = "0.24.1", default-features = false } diff --git a/modules/service/Cargo.toml b/modules/service/Cargo.toml index bd41d6b0..61170d53 100644 --- a/modules/service/Cargo.toml +++ b/modules/service/Cargo.toml @@ -7,11 +7,9 @@ edition = "2021" tonic = { version = "0.8", default-features = false } tonic-reflection = { version = "0.6.0" } tokio = { version = "1.0", features = ["full"] } -log = "0.4.8" anyhow = { version = "1.0.56" } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } -host = { path = "../host" } enclave-api = { path = "../enclave-api" } lcp-proto = { path = "../../proto", default-features = false } attestation-report = { path = "../attestation-report" } diff --git a/modules/tendermint-lc/Cargo.toml b/modules/tendermint-lc/Cargo.toml index c6c5b6ae..620bbb13 100644 --- a/modules/tendermint-lc/Cargo.toml +++ b/modules/tendermint-lc/Cargo.toml @@ -6,12 +6,6 @@ edition = "2021" [dependencies] ibc = { version = "0.29.0", default-features = false, features = ["serde"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } -tendermint-light-client-verifier = { version = "0.29", default-features = false } -tendermint-proto = { version = "0.29", default-features = false } -prost = { version = "0.11", default-features = false } -prost-types = { version = "0.11", default-features = false } -sha2 = { version = "0.10.6", default-features = false } -time = { version = "0.3", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc"] } log = { version = "0.4.8", default-features = false } flex-error = { version = "0.4.4", default-features = false } diff --git a/modules/types/Cargo.toml b/modules/types/Cargo.toml index e90ce42e..2e6704bc 100644 --- a/modules/types/Cargo.toml +++ b/modules/types/Cargo.toml @@ -9,7 +9,6 @@ prost-types = { version = "0.11", default-features = false } ibc = { version = "0.29.0", default-features = false, features = ["serde"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } tendermint = { version = "0.29", default-features = false } -tendermint-proto = { version = "0.29", default-features = false } serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } flex-error = { version = "0.4.4", default-features = false } diff --git a/modules/validation-context/Cargo.toml b/modules/validation-context/Cargo.toml index abc7e98d..9b4f03e0 100644 --- a/modules/validation-context/Cargo.toml +++ b/modules/validation-context/Cargo.toml @@ -5,7 +5,6 @@ edition = "2021" [dependencies] serde = { version = "1.0", default-features = false, features = ["alloc"] } -tendermint-light-client-verifier = { version = "0.29", default-features = false } rlp = { version = "0.5.1", default-features = false } lcp-types = { path = "../types", default-features = false } diff --git a/proto-compiler/Cargo.toml b/proto-compiler/Cargo.toml index 6a75cee5..094d77f2 100644 --- a/proto-compiler/Cargo.toml +++ b/proto-compiler/Cargo.toml @@ -4,7 +4,6 @@ version = "0.1.0" edition = "2021" [dependencies] -prost-build = "0.11" tempdir = "0.3.7" walkdir = "2.3" argh = "0.1.3" diff --git a/proto/Cargo.toml b/proto/Cargo.toml index 54d7f41a..246fcfea 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -13,11 +13,9 @@ all-features = true [dependencies] prost = { version = "0.11", default-features = false } -bytes = { version = "1.2", default-features = false } tonic = { version = "0.8", optional = true, default-features = false } serde = { version = "1.0", default-features = false } schemars = { version = "0.8", optional = true } -base64 = { version = "0.13", default-features = false, features = ["alloc"] } ibc = { version = "0.29.0", default-features = false, optional = true } ibc-proto = { version = "0.26.0", default-features = false } diff --git a/tools/cgen/Cargo.toml b/tools/cgen/Cargo.toml index 0b3d8012..3aed8940 100644 --- a/tools/cgen/Cargo.toml +++ b/tools/cgen/Cargo.toml @@ -7,16 +7,12 @@ build = "build.rs" [dependencies] ibc = { version = "0.29.0", default-features = false, features = ["serde", "std"] } ibc-proto = { version = "0.26.0", default-features = false, features = ["parity-scale-codec", "borsh"] } -ibc-relayer = { version = "0.22.0", default-features = false } ibc-test-framework = { version = "0.22.0", default-features = false } -tendermint-rpc = { version = "0.28", default-features = false } clap = { version = "3.2", features = ["derive"] } tempdir = "0.3.7" -prost-types = { version = "0.11", default-features = false } anyhow = { version = "1.0.56" } tokio = { version = "1.0" } log = "0.4.8" -once_cell = "1.15.0" serde = { version = "1.0", default-features = false, features = ["alloc"] } serde_json = { version = "1.0", default-features = false, features = ["alloc"] } base64 = { git = "https://github.com/marshallpierce/rust-base64", default-features = false, features = ["alloc"] } @@ -27,7 +23,6 @@ host = { path = "../../modules/host" } host-environment = { path = "../../modules/host-environment" } store = { path = "../../modules/store" } commitments = { path = "../../modules/commitments" } -ocall-handler = { path = "../../modules/ocall-handler" } enclave-api = { path = "../../modules/enclave-api" } ecall-commands = { path = "../../modules/ecall-commands" } attestation-report = { path = "../../modules/attestation-report" }