Skip to content

Commit

Permalink
build: removed unused dependencies (cargo machete)
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Oct 15, 2024
1 parent 99e02fb commit b3f79a9
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 73 deletions.
2 changes: 0 additions & 2 deletions crates/benches/binary/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ tlsn-benches-library = { workspace = true }
tlsn-benches-browser-native = { workspace = true, optional = true}
tlsn-common = { workspace = true }
tlsn-core = { workspace = true }
tlsn-prover = { workspace = true }
tlsn-server-fixture = { workspace = true }
tlsn-server-fixture-certs = { workspace = true }
tlsn-tls-core = { workspace = true }
Expand All @@ -23,7 +22,6 @@ anyhow = { workspace = true }
async-trait = { workspace = true }
charming = {version = "0.3.1", features = ["ssr"]}
csv = "1.3.0"
env_logger = { version = "0.6.0", default-features = false }
serde = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros", "net", "io-std"]}
tokio-util = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/benches/browser/native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ chromiumoxide = { version = "0.6.0" , features = ["tokio-runtime"] }
futures = { workspace = true }
rust-embed = "8.5.0"
tokio = { workspace = true, features = ["rt", "io-std"] }
tokio-tungstenite = { version = "0.23", features = ["url"] }
tracing = { workspace = true }
warp = "0.3.7"
warp-embed = "0.5.0"
7 changes: 0 additions & 7 deletions crates/benches/browser/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@ tlsn-wasm = { path = "../../../wasm" }
serio = { workspace = true }

anyhow = { workspace = true }
console_error_panic_hook = { version = "0.1.7" }
parking_lot = { version = "0.12", features = ["nightly"] }
serde = { workspace = true, features = ["derive"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["time", "env-filter"] }
tracing-web = "0.1.2"
tsify-next = { version = "0.5", default-features = false, features = ["js"] }
wasm-bindgen = "0.2.87"
wasm-bindgen-futures = "0.4.37"
web-sys = { version = "0.3.4", features = ["console"] }
web-time = { workspace = true }
# Use the patched ws_stream_wasm to fix the issue https://github.com/najamelan/ws_stream_wasm/issues/12#issuecomment-1711902958
ws_stream_wasm = { version = "0.7.4", git = "https://github.com/tlsnotary/ws_stream_wasm", rev = "2ed12aad9f0236e5321f577672f309920b2aef51", features = ["tokio_io"]}
Expand Down
5 changes: 0 additions & 5 deletions crates/benches/library/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ async-trait = "0.1.81"
futures = { version = "0.3", features = ["compat"] }
serde = { workspace = true }
tokio = {version = "1", default-features = false, features = ["rt", "macros"]}
tokio-tungstenite-wasm = "0.3.1"
tokio-util= {version = "0.7", features = ["compat", "io"]}
toml = "0.8.11"



1 change: 0 additions & 1 deletion crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ thiserror = { workspace = true }
tracing = { workspace = true }
uid-mux = { workspace = true, features = ["serio"] }
serde = { workspace = true, features = ["derive"] }
tlsn-utils = { workspace = true }
semver = { version = "1.0", features = ["serde"] }

[dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion crates/components/key-exchange/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mock = []
mpz-garble = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-common = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-fields = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-ot = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-share-conversion = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac", features = [
"ideal",
] }
Expand Down
5 changes: 0 additions & 5 deletions crates/components/universal-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ mpz-common = { git = "https://github.com/privacy-scaling-explorations/mpz", rev
"ideal",
] }
mpz-fields = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-share-conversion-core = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-share-conversion = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }

ghash_rc = { package = "ghash", version = "0.5", optional = true }

async-trait = { workspace = true }
futures = { workspace = true }
futures-util = { workspace = true }
thiserror = { workspace = true }
opaque-debug = { workspace = true }
tracing = { workspace = true }
Expand All @@ -43,8 +40,6 @@ mpz-share-conversion = { git = "https://github.com/privacy-scaling-explorations/

ghash_rc = { package = "ghash", version = "0.5" }
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }
criterion = { workspace = true }
rstest = { workspace = true }
rand_chacha = { workspace = true }
rand = { workspace = true }
generic-array = { workspace = true }
9 changes: 3 additions & 6 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ mpz-circuits = { workspace = true }
bcs = { workspace = true }
bimap = { version = "0.6", features = ["serde"] }
blake3 = { workspace = true }
derive_builder = { workspace = true }
hex = { workspace = true, optional = true }
k256 = { workspace = true }
opaque-debug = { workspace = true }
Expand All @@ -43,14 +42,12 @@ webpki-roots = { workspace = true }
[dev-dependencies]
rstest = { workspace = true }
hex = { workspace = true }
rand_chacha = { workspace = true }
bincode = { workspace = true }
tlsn-data-fixtures = { workspace = true }

[[test]]
name = "api"
required-features = ["fixtures"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
getrandom = { version = "0.2", features = ["js"] }
# [target.'cfg(target_arch = "wasm32")'.dependencies]

This comment has been minimized.

Copy link
@sinui0

sinui0 Oct 16, 2024

Member

What happened here?

This comment has been minimized.

Copy link
@heeckhau

heeckhau Oct 17, 2024

Author Member

The wasm-tests still run without this. I'll double check with the tlsn-js tests

# ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
# getrandom = { version = "0.2", features = ["js"] }
3 changes: 0 additions & 3 deletions crates/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ tlsn-formats = { workspace = true }
bincode = { workspace = true }
chrono = { workspace = true }
dotenv = { version = "0.15.0" }
elliptic-curve = { workspace = true, features = ["pkcs8"] }
futures = { workspace = true }
http-body-util = { workspace = true }
hex = { workspace = true }
hyper = { workspace = true, features = ["client", "http1"] }
hyper-util = { workspace = true, features = ["full"] }
k256 = { workspace = true, features = ["ecdsa"] }
regex = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = [
"rt",
Expand Down
2 changes: 0 additions & 2 deletions crates/formats/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ edition = "2021"

[dependencies]
tlsn-core = { workspace = true }
tlsn-utils = { workspace = true }

bytes = { workspace = true }
serde = { workspace = true }
spansy = { workspace = true, features = ["serde"] }
thiserror = { workspace = true }

Expand Down
1 change: 0 additions & 1 deletion crates/notary/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[dependencies]
notary-server = { workspace = true }
tlsn-common = { workspace = true }

derive_builder = { workspace = true }
futures = { workspace = true }
Expand Down
5 changes: 0 additions & 5 deletions crates/notary/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ axum = { workspace = true, features = ["ws"] }
axum-core = { version = "0.4" }
axum-macros = { version = "0.4" }
base64 = { version = "0.21" }
chrono = { version = "0.4" }
config = { version = "0.14", features = ["yaml"] }
csv = { version = "1.3" }
eyre = { version = "0.6" }
futures = { workspace = true }
futures-util = { workspace = true }
http = { workspace = true }
http-body-util = { workspace = true }
hyper = { workspace = true, features = ["client", "http1", "server"] }
hyper-util = { workspace = true, features = ["full"] }
k256 = { workspace = true }
Expand All @@ -33,15 +30,13 @@ pkcs8 = { workspace = true, features = ["pem"] }
rustls = { workspace = true }
rustls-pemfile = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
serde_yaml = { version = "0.9" }
sha1 = { version = "0.10" }
structopt = { version = "0.3" }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tokio-rustls = { workspace = true }
tokio-util = { workspace = true, features = ["compat"] }
tower = { version = "0.4", features = ["make"] }
tower-http = { version = "0.5", features = ["cors"] }
tower-service = { version = "0.3" }
tower-util = { version = "0.3.1" }
Expand Down
10 changes: 0 additions & 10 deletions crates/prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ force-st = ["mpz-common/force-st"]
[dependencies]
tlsn-common = { workspace = true }
tlsn-core = { workspace = true }
tlsn-formats = { workspace = true, optional = true }
tlsn-tls-client = { workspace = true }
tlsn-tls-client-async = { workspace = true }
tlsn-tls-core = { workspace = true }
tlsn-tls-mpc = { workspace = true }
tlsn-utils = { workspace = true }
tlsn-utils-aio = { workspace = true }

serio = { workspace = true, features = ["compat"] }
uid-mux = { workspace = true, features = ["serio"] }
Expand All @@ -33,18 +29,12 @@ mpz-garble = { workspace = true }
mpz-garble-core = { workspace = true }
mpz-ole = { workspace = true }
mpz-ot = { workspace = true }
mpz-share-conversion = { workspace = true }

bytes = { workspace = true }
derive_builder = { workspace = true }
futures = { workspace = true }
opaque-debug = { workspace = true }
rand = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
web-time = { workspace = true }
webpki-roots = { workspace = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }

This comment has been minimized.

Copy link
@sinui0

sinui0 Oct 16, 2024

Member

and here?

4 changes: 0 additions & 4 deletions crates/tests-integration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ tlsn-prover = { workspace = true }
tlsn-server-fixture = { workspace = true }
tlsn-server-fixture-certs = { workspace = true }
tlsn-tls-core = { workspace = true }
tlsn-utils = { workspace = true }
tlsn-verifier = { workspace = true }

bincode = { workspace = true }
futures = { workspace = true }
http-body-util = { workspace = true }
hyper = { workspace = true, features = ["client", "http1"] }
hyper-util = { workspace = true, features = ["full"] }
p256 = { workspace = true, features = ["ecdsa"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
tokio-util = { workspace = true }
tracing = { workspace = true }
Expand Down
2 changes: 0 additions & 2 deletions crates/tls/client-async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ hyper = { workspace = true, features = ["client", "http1"] }
hyper-util = { workspace = true, features = ["full"] }
rstest = { workspace = true }
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }
tracing-subscriber = { workspace = true }
webpki-roots = { workspace = true }
1 change: 0 additions & 1 deletion crates/tls/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ rustdoc-args = ["--cfg", "docsrs"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
getrandom = { version = "0.2", features = ["js"] }
2 changes: 0 additions & 2 deletions crates/tls/mpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ tlsn-universal-hash = { workspace = true }
tlsn-utils-aio = { workspace = true }

mpz-common = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-core = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-fields = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-garble = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
mpz-ole = { git = "https://github.com/privacy-scaling-explorations/mpz", rev = "b8ae7ac" }
Expand All @@ -41,7 +40,6 @@ derive_builder = { workspace = true }
enum-try-as-inner = { workspace = true }
futures = { workspace = true }
p256 = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
Expand Down
8 changes: 1 addition & 7 deletions crates/verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,21 @@ force-st = ["mpz-common/force-st"]
[dependencies]
tlsn-common = { workspace = true }
tlsn-core = { workspace = true }
tlsn-tls-core = { workspace = true }
tlsn-tls-mpc = { workspace = true }
tlsn-utils = { workspace = true }
tlsn-utils-aio = { workspace = true }

serio = { workspace = true, features = ["compat"] }
uid-mux = { workspace = true, features = ["serio"] }

mpz-circuits = { workspace = true }
mpz-common = { workspace = true }
mpz-core = { workspace = true }
mpz-garble = { workspace = true }
mpz-ole = { workspace = true }
mpz-ot = { workspace = true }
mpz-share-conversion = { workspace = true }

derive_builder = { workspace = true }
futures = { workspace = true }
opaque-debug = { workspace = true }
rand = { workspace = true }
signature = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
web-time = { workspace = true }
web-time = { workspace = true }
4 changes: 0 additions & 4 deletions crates/wasm-test-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ anyhow = { workspace = true }
axum = { workspace = true }
chromiumoxide = { version = "0.6", features = ["tokio-runtime"] }
futures = { workspace = true }
once_cell = { workspace = true }
k256 = { workspace = true }
rand = { workspace = true }
serde = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["full"] }
tokio-tungstenite = { version = "0.23", features = ["url"] }
tokio-util = { workspace = true, features = ["compat"] }
tower = { version = "0.4" }
tower-http = { version = "0.5", features = ["fs", "set-header"] }
Expand Down
4 changes: 0 additions & 4 deletions crates/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ bincode = { workspace = true }
console_error_panic_hook = { version = "0.1" }
enum-try-as-inner = { workspace = true }
futures = { workspace = true }
getrandom = { version = "0.2", features = ["js"] }
http-body-util = { version = "0.1" }
hyper = { workspace = true, features = ["client", "http1"] }
p256 = { workspace = true }
parking_lot = { version = "0.12", features = ["nightly"] }
pin-project-lite = { workspace = true }
ring = { version = "0.17", features = ["wasm32_unknown_unknown_js"] }
serde = { workspace = true, features = ["derive"] }
serde-wasm-bindgen = { version = "0.6" }
serde_json = { version = "1.0" }
time = { version = "0.3", features = ["wasm-bindgen"] }
tracing = { workspace = true }
Expand Down

0 comments on commit b3f79a9

Please sign in to comment.