aboutsummaryrefslogtreecommitdiff
path: root/tests/_require_full.rs
blob: d33943a960dbbb96027f911c8af6e0d6a2df25e5 (plain)
1
2
3
4
5
6
7
8
#[cfg(not(any(feature = "full", target_family = "wasm")))]
compile_error!("run main Tokio tests with `--features full`");

// CI sets `--cfg tokio_no_parking_lot` when trying to run tests with
// `parking_lot` disabled. This check prevents "silent failure" if `parking_lot`
// accidentally gets enabled.
#[cfg(all(tokio_no_parking_lot, feature = "parking_lot"))]
compile_error!("parking_lot feature enabled when it should not be");