Sitelet https://github.com/isSerge/examples/commit/60d14dff23d8754a84a32ed4efdf36a2b1992cfb
Skip to content

Commit 60d14df

Browse files
authored
Merge pull request alloy-rs#29 from alloy-rs/zerosnacks/remove-reqwest-dependency
chore(general): remove reqwest dependency
2 parents efd87c4 + ad561eb commit 60d14df

10 files changed

Lines changed: 2 additions & 16 deletions

File tree

‎Cargo.toml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ tokio = "1"
5656

5757
# misc
5858
eyre = "0.6.12"
59-
reqwest = { version = "0.11", default-features = false }
60-
61-
## serde
62-
serde = { version = "1.0", features = ["derive"] }
6359

6460
[patch.crates-io]
6561
alloy-core = { git = "https://github.com/alloy-rs/core", rev = "907d61a45a9135e979310990744080eef5f03fe5" }

‎examples/anvil/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ repository.workspace = true
1414
alloy.workspace = true
1515

1616
eyre.workspace = true
17-
reqwest.workspace = true
1817
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

‎examples/contracts/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ repository.workspace = true
1414
alloy.workspace = true
1515

1616
eyre.workspace = true
17-
reqwest.workspace = true
1817
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

‎examples/layers/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ repository.workspace = true
1414
alloy.workspace = true
1515

1616
eyre.workspace = true
17-
reqwest.workspace = true
1817
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

‎examples/providers/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", f
2424

2525
eyre.workspace = true
2626
futures-util = "0.3"
27-
reqwest.workspace = true
2827
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

‎examples/queries/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ alloy.workspace = true
1515

1616
eyre.workspace = true
1717
futures-util = "0.3"
18-
reqwest.workspace = true
1918
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

‎examples/subscriptions/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", f
3232

3333
eyre.workspace = true
3434
futures-util = "0.3"
35-
reqwest.workspace = true
3635
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

‎examples/transactions/Cargo.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ repository.workspace = true
1414
alloy.workspace = true
1515

1616
eyre.workspace = true
17-
reqwest.workspace = true
1817
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }

‎examples/transactions/examples/trace_call.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ use alloy::{
1111
},
1212
};
1313
use eyre::Result;
14-
use reqwest::Url;
1514

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

22-
let provider =
23-
HttpProvider::<Ethereum>::new_http("https://eth.merkle.io".parse::<Url>().unwrap());
21+
let provider = HttpProvider::<Ethereum>::new_http("https://eth.merkle.io".parse()?);
2422

2523
let from = anvil.addresses()[0];
2624
let to = anvil.addresses()[1];

‎examples/wallets/Cargo.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ alloy.workspace = true
1515

1616
eyre.workspace = true
1717
rand = "0.8.5"
18-
reqwest.workspace = true
19-
serde.workspace = true
18+
serde = { version = "1.0", features = ["derive"] }
2019
tempfile = "3.10.1"
2120
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)