Skip to content

Commit

Permalink
chore(deps): update all dependencies (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Mar 9, 2024
1 parent c2d458f commit 9ac2c90
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 70 deletions.
44 changes: 22 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ alloy-transport-http = { version = "0.1.0", default-features = false, path = "cr
alloy-transport-ipc = { version = "0.1.0", default-features = false, path = "crates/transport-ipc" }
alloy-transport-ws = { version = "0.1.0", default-features = false, path = "crates/transport-ws" }

alloy-core = { version = "0.6.3", default-features = false, features = ["std"] }
alloy-dyn-abi = { version = "0.6.3", default-features = false, features = ["std"] }
alloy-json-abi = { version = "0.6.3", default-features = false, features = ["std"] }
alloy-primitives = { version = "0.6.3", default-features = false, features = ["std"] }
alloy-sol-types = { version = "0.6.3", default-features = false, features = ["std"] }
alloy-core = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-dyn-abi = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-json-abi = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-primitives = { version = "0.6.4", default-features = false, features = ["std"] }
alloy-sol-types = { version = "0.6.4", default-features = false, features = ["std"] }

alloy-rlp = "0.3"

Expand All @@ -59,33 +59,33 @@ sha2 = { version = "0.10", default-features = false, features = ["std"] }
spki = { version = "0.7", default-features = false, features = ["std"] }

# async
async-trait = "0.1.74"
futures = "0.3.29"
futures-util = "0.3.29"
futures-executor = "0.3.29"
async-trait = "0.1"
futures = "0.3"
futures-util = "0.3"
futures-executor = "0.3"

hyper = "0.14.27"
tokio = "1.33"
hyper = "0.14"
tokio = "1"
tokio-util = "0.7"
tokio-stream = "0.1.14"
tower = { version = "0.4.13", features = ["util"] }
tokio-stream = "0.1"
tower = { version = "0.4", features = ["util"] }

tracing = "0.1.40"
tracing-subscriber = "0.3.18"
tracing = "0.1"
tracing-subscriber = "0.3"

# misc
auto_impl = "1.1"
base64 = "0.21"
auto_impl = "1.2"
base64 = "0.22"
bimap = "0.6"
home = "0.5"
itertools = "0.12"
once_cell = "1.17"
once_cell = "1.19"
pin-project = "1.1"
rand = "0.8.5"
reqwest = { version = "0.11.18", default-features = false }
rand = "0.8"
reqwest = { version = "0.11", default-features = false }
semver = "1.0"
thiserror = "1.0"
url = "2.4"
url = "2.5"

## serde
serde = { version = "1.0", features = ["derive"] }
Expand All @@ -98,7 +98,7 @@ proptest = "1.4"
proptest-derive = "0.4"
serial_test = "3.0"
similar-asserts = "1.5"
tempfile = "3.8"
tempfile = "3.10"

# TODO: Keep around until alloy-contract is stable.
# This should only be used in `alloy-contract` tests.
Expand Down
2 changes: 1 addition & 1 deletion crates/consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ alloy-rlp.workspace = true
alloy-eips.workspace = true
thiserror = { workspace = true, optional = true }
c-kzg = { version = "0.4.2", features = ["serde"], optional = true }
sha2 = { version = "0.10.7", optional = true }
sha2 = { version = "0.10", optional = true }

# arbitrary
arbitrary = { workspace = true, features = ["derive"], optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ alloy-transport.workspace = true

alloy-primitives.workspace = true

async-stream = "0.3.5"
async-stream = "0.3"
async-trait.workspace = true
auto_impl = "1.1.0"
auto_impl.workspace = true
futures.workspace = true
lru = "0.12.2"
lru = "0.12"
reqwest.workspace = true
serde.workspace = true
thiserror.workspace = true
Expand Down
5 changes: 0 additions & 5 deletions crates/rpc-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,8 @@ alloy-transport-ipc = { workspace = true, optional = true }
alloy-primitives.workspace = true
alloy-node-bindings.workspace = true
alloy-transport-ipc = { workspace = true, features = ["mock"] }
alloy-transport-ws.workspace = true

tokio.workspace = true

tempfile = "3"
test-log = { version = "0.2.13", default-features = false, features = ["trace"] }
tracing-subscriber = { version = "0.3.17", features = ["std", "env-filter"] }

[features]
default = ["reqwest"]
Expand Down
19 changes: 9 additions & 10 deletions crates/rpc-client/tests/it/http.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
use alloy_node_bindings::Anvil;
use alloy_primitives::U64;
use alloy_rpc_client::{ClientBuilder, RpcCall};
use std::borrow::Cow;

// #[tokio::test]
#[tokio::test]
async fn it_makes_a_request() {
let infura = std::env::var("HTTP_PROVIDER_URL").unwrap();

let client = ClientBuilder::default().reqwest_http(infura.parse().unwrap());

let params: Cow<'static, _> = Cow::Owned(());

let req: RpcCall<_, Cow<'static, ()>, U64> = client.prepare("eth_blockNumber", params);
req.await.unwrap();
let anvil = Anvil::new().spawn();
let url = anvil.endpoint();
let client = ClientBuilder::default().reqwest_http(url.parse().unwrap());
let req: RpcCall<_, (), U64> = client.prepare("eth_blockNumber", ());
let timeout = tokio::time::timeout(std::time::Duration::from_secs(2), req);
let res = timeout.await.unwrap().unwrap();
assert_eq!(res.to::<u64>(), 0);
}
13 changes: 4 additions & 9 deletions crates/rpc-client/tests/it/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use alloy_primitives::U64;
use alloy_pubsub::PubSubFrontend;
use alloy_rpc_client::{ClientBuilder, RpcCall, RpcClient};
use alloy_transport_ipc::IpcConnect;
use std::borrow::Cow;
use tempfile::NamedTempFile;

async fn connect() -> (RpcClient<PubSubFrontend>, GethInstance) {
Expand All @@ -23,15 +22,11 @@ async fn connect() -> (RpcClient<PubSubFrontend>, GethInstance) {
(client, geth)
}

#[test_log::test(tokio::test)]
#[tokio::test]
async fn it_makes_a_request() {
let (client, _geth) = connect().await;

let params: Cow<'static, _> = Cow::Owned(vec![]);

let req: RpcCall<_, Cow<'static, Vec<String>>, U64> = client.prepare("eth_blockNumber", params);

let req: RpcCall<_, (), U64> = client.prepare("eth_blockNumber", ());
let timeout = tokio::time::timeout(std::time::Duration::from_secs(2), req);

timeout.await.unwrap().unwrap();
let res = timeout.await.unwrap().unwrap();
assert!(res.to::<u64>() <= 3);
}
21 changes: 8 additions & 13 deletions crates/rpc-client/tests/it/ws.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
use alloy_node_bindings::Anvil;
use alloy_primitives::U64;
use alloy_rpc_client::{ClientBuilder, RpcCall};
use alloy_transport_ws::WsConnect;
use std::borrow::Cow;

// #[test_log::test(tokio::test)]
#[tokio::test]
async fn it_makes_a_request() {
let infura = std::env::var("WS_PROVIDER_URL").unwrap();

let connector = WsConnect { url: infura.parse().unwrap(), auth: None };

let anvil = Anvil::new().spawn();
let url = anvil.ws_endpoint();
let connector = WsConnect { url: url.parse().unwrap(), auth: None };
let client = ClientBuilder::default().pubsub(connector).await.unwrap();

let params: Cow<'static, _> = Cow::Owned(());

let req: RpcCall<_, Cow<'static, ()>, U64> = client.prepare("eth_blockNumber", params);

let req: RpcCall<_, (), U64> = client.prepare("eth_blockNumber", ());
let timeout = tokio::time::timeout(std::time::Duration::from_secs(2), req);

timeout.await.unwrap().unwrap();
let res = timeout.await.unwrap().unwrap();
assert_eq!(res.to::<u64>(), 0);
}
4 changes: 2 additions & 2 deletions crates/signer-aws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ alloy-primitives.workspace = true
alloy-signer.workspace = true

async-trait.workspace = true
aws-sdk-kms = { version = "1.1", default-features = false }
aws-sdk-kms = { version = "1", default-features = false }
k256.workspace = true
spki.workspace = true
thiserror.workspace = true
tracing.workspace = true

[dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
aws-config = { version = "1.0", default-features = false }
aws-config = { version = "1", default-features = false }

[features]
eip712 = ["alloy-signer/eip712"]
2 changes: 1 addition & 1 deletion crates/signer-ledger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ alloy-primitives.workspace = true
alloy-signer.workspace = true

async-trait.workspace = true
coins-ledger = { version = "0.9.1", default-features = false }
coins-ledger = { version = "0.10", default-features = false }
futures-util.workspace = true
semver.workspace = true
thiserror.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/transport-ipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tracing.workspace = true
bytes = "1.5.0"
interprocess = { version = "1.2.1", features = ["tokio", "tokio_support"] }
serde = { workspace = true, optional = true }
tempfile = { version = "3.8.1", optional = true }
tempfile = { workspace = true, optional = true }

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions crates/transport-ws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ tracing.workspace = true

# non-WASM only
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
http = "0.2.9"
http = "0.2"
tokio = { workspace = true, features = ["sync", "rt", "time"] }
tokio-tungstenite = { version = "0.20.1", features = ["rustls-tls-webpki-roots"] }
tokio-tungstenite = { version = "0.20", features = ["rustls-tls-webpki-roots"] }

# WASM only
[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/transport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tower.workspace = true
url.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4.37"
wasm-bindgen-futures = "0.4"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["rt"] }

0 comments on commit 9ac2c90

Please sign in to comment.