Skip to content

Commit

Permalink
Merge pull request #29 from alloy-rs/zerosnacks/remove-reqwest-depend…
Browse files Browse the repository at this point in the history
…ency

chore(general): remove reqwest dependency
  • Loading branch information
zerosnacks authored Mar 27, 2024
2 parents efd87c4 + ad561eb commit 60d14df
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 16 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ tokio = "1"

# misc
eyre = "0.6.12"
reqwest = { version = "0.11", default-features = false }

## serde
serde = { version = "1.0", features = ["derive"] }

[patch.crates-io]
alloy-core = { git = "https://github.com/alloy-rs/core", rev = "907d61a45a9135e979310990744080eef5f03fe5" }
Expand Down
1 change: 0 additions & 1 deletion examples/anvil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ repository.workspace = true
alloy.workspace = true

eyre.workspace = true
reqwest.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
1 change: 0 additions & 1 deletion examples/contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ repository.workspace = true
alloy.workspace = true

eyre.workspace = true
reqwest.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
1 change: 0 additions & 1 deletion examples/layers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ repository.workspace = true
alloy.workspace = true

eyre.workspace = true
reqwest.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
1 change: 0 additions & 1 deletion examples/providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", f

eyre.workspace = true
futures-util = "0.3"
reqwest.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1 change: 0 additions & 1 deletion examples/queries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ alloy.workspace = true

eyre.workspace = true
futures-util = "0.3"
reqwest.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1 change: 0 additions & 1 deletion examples/subscriptions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", f

eyre.workspace = true
futures-util = "0.3"
reqwest.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
1 change: 0 additions & 1 deletion examples/transactions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ repository.workspace = true
alloy.workspace = true

eyre.workspace = true
reqwest.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
4 changes: 1 addition & 3 deletions examples/transactions/examples/trace_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ use alloy::{
},
};
use eyre::Result;
use reqwest::Url;

#[tokio::main]
async fn main() -> Result<()> {
// Spin up a forked Anvil node.
// Ensure `anvil` is available in $PATH
let anvil = Anvil::new().fork("https://eth.merkle.io").try_spawn()?;

let provider =
HttpProvider::<Ethereum>::new_http("https://eth.merkle.io".parse::<Url>().unwrap());
let provider = HttpProvider::<Ethereum>::new_http("https://eth.merkle.io".parse()?);

let from = anvil.addresses()[0];
let to = anvil.addresses()[1];
Expand Down
3 changes: 1 addition & 2 deletions examples/wallets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ alloy.workspace = true

eyre.workspace = true
rand = "0.8.5"
reqwest.workspace = true
serde.workspace = true
serde = { version = "1.0", features = ["derive"] }
tempfile = "3.10.1"
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

0 comments on commit 60d14df

Please sign in to comment.