• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[cfg(not(any(feature = "full", tokio_wasm)))]
2 compile_error!("run main Tokio tests with `--features full`");
3 
4 // CI sets `--cfg tokio_no_parking_lot` when trying to run tests with
5 // `parking_lot` disabled. This check prevents "silent failure" if `parking_lot`
6 // accidentally gets enabled.
7 #[cfg(all(tokio_no_parking_lot, feature = "parking_lot"))]
8 compile_error!("parking_lot feature enabled when it should not be");
9