Skip to content

Commit

Permalink
temp dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Mar 25, 2024
1 parent 8216a68 commit 01372cf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
8 changes: 8 additions & 0 deletions examples/providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ repository.workspace = true

[dev-dependencies]
alloy.workspace = true
# Temp dependency fix to enable relevant features - Ref: https://github.com/alloy-rs/examples/pull/3#discussion_r1537842062
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
"pubsub",
] }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
"pubsub",
"ws",
] }


eyre.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion examples/providers/examples/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
use alloy::{
network::Ethereum,
providers::{Provider, RootProvider},
rpc::client::RpcClient,
transports::ipc::IpcConnect,
};
use alloy_rpc_client::RpcClient;
use eyre::Result;

#[tokio::main]
Expand Down
11 changes: 5 additions & 6 deletions examples/providers/examples/ws.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! Example of using the WS provider to subscribe to new blocks.
use alloy::{
network::Ethereum,
providers::{Provider, RootProvider},
rpc::client::RpcClient,
transports::ws::WsConnect,
};
use alloy::network::Ethereum;
// Temp Fix
use alloy_provider::{Provider, RootProvider};
use alloy_rpc_client::{RpcClient, WsConnect};
//
use eyre::Result;
use futures_util::StreamExt;

Expand Down
11 changes: 5 additions & 6 deletions examples/providers/examples/ws_with_auth.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
//! Example of using the WS provider with auth to subscribe to new blocks.
use alloy::{
network::Ethereum,
providers::{Provider, RootProvider},
rpc::client::RpcClient,
transports::Authorization,
};
use alloy::{network::Ethereum, transports::Authorization};
// Temp Fix
use alloy_provider::{Provider, RootProvider};
use alloy_rpc_client::{RpcClient, WsConnect};
//
use eyre::Result;
use futures_util::StreamExt;

Expand Down

0 comments on commit 01372cf

Please sign in to comment.