Skip to content

Commit 349a77b

Browse files
committed
keep compile check only in runtime
1 parent 78e4b33 commit 349a77b

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

crates/engine/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#[cfg(all(feature = "tokio", feature = "simulation"))]
2-
compile_error!(
3-
"spacetimedb-engine requires exactly one runtime backend: enable either `tokio` or `simulation`, not both"
4-
);
5-
6-
#[cfg(not(any(feature = "tokio", feature = "simulation")))]
7-
compile_error!("spacetimedb-engine requires exactly one runtime backend: enable either `tokio` or `simulation`");
8-
91
pub mod db;
102
pub mod error;
113
pub mod metrics;

crates/runtime/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
//#[cfg(all(feature = "tokio", feature = "simulation"))]
2-
//compile_error!(
3-
// "spacetimedb-runtime requires exactly one runtime backend: enable either `tokio` or `simulation`, not both"
4-
//);
5-
//
1+
#[cfg(all(feature = "tokio", feature = "simulation"))]
2+
compile_error!(
3+
"spacetimedb-runtime requires exactly one runtime backend: enable either `tokio` or `simulation`, not both"
4+
);
5+
66
#[cfg(not(any(feature = "tokio", feature = "simulation")))]
77
compile_error!("spacetimedb-runtime requires exactly one runtime backend: enable either `tokio` or `simulation`");
88

0 commit comments

Comments
 (0)