From b83c79c1106ef3568c0fcd9c3de3acc6f4d6e0cd Mon Sep 17 00:00:00 2001 From: leruaa Date: Tue, 1 Oct 2024 07:36:03 +0000 Subject: [PATCH] fix: tests with --no-default-features --- Cargo.toml | 11 +++++++++++ tests/call_eth_bundle.rs | 1 + tests/sim_mev_bundle.rs | 1 + 3 files changed, 13 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b2806ff..4d1bb03 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,3 +49,14 @@ alloy = { version = "0.4", features = [ [package.metadata.docs.rs] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] + + +[[example]] +name = "mev_share" +doc-scrape-examples = true +required-features = ["reqwest"] + +[[example]] +name = "send_to_builders" +doc-scrape-examples = true +required-features = ["reqwest"] diff --git a/tests/call_eth_bundle.rs b/tests/call_eth_bundle.rs index e6b9142..43ed320 100644 --- a/tests/call_eth_bundle.rs +++ b/tests/call_eth_bundle.rs @@ -10,6 +10,7 @@ use alloy::{ use alloy_mev::{BundleSigner, EthMevProviderExt}; use dotenv::dotenv; +#[cfg(feature = "reqwest")] #[tokio::test] async fn test_call_eth_bundle() { dotenv().ok(); diff --git a/tests/sim_mev_bundle.rs b/tests/sim_mev_bundle.rs index d6eecf4..e833ec5 100644 --- a/tests/sim_mev_bundle.rs +++ b/tests/sim_mev_bundle.rs @@ -10,6 +10,7 @@ use alloy::{ use alloy_mev::MevShareProviderExt; use dotenv::dotenv; +#[cfg(feature = "reqwest")] #[tokio::test] async fn test_sim_mev_bundle() { dotenv().ok();