ZeroTierOne/zeroidc/vendor/tokio/tests/_require_full.rs

9 lines
420 B
Rust
Raw Normal View History

2023-01-12 21:41:29 +01:00
#[cfg(not(any(feature = "full", tokio_wasm)))]
compile_error!("run main Tokio tests with `--features full`");
2023-01-12 21:41:29 +01:00
// 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");