Skip to content

Commit

Permalink
fix: tests with --no-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
leruaa committed Oct 1, 2024
1 parent 895ab05 commit b83c79c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions tests/call_eth_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions tests/sim_mev_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b83c79c

Please sign in to comment.