Debian Codegraph @

third_party/rust/tokio/tests/_require_full.rs

raw
1 #![allow(unknown_lints, unexpected_cfgs)]
2
3 #[cfg(not(any(feature = "full", target_family = "wasm")))]
4 compile_error!("run main Tokio tests with `--features full`");
5
6 // CI sets `--cfg tokio_no_parking_lot` when trying to run tests with
7 // `parking_lot` disabled. This check prevents "silent failure" if `parking_lot`
8 // accidentally gets enabled.
9 #[cfg(all(tokio_no_parking_lot, feature = "parking_lot"))]
10 compile_error!("parking_lot feature enabled when it should not be");