Skip to content

Commit ceea917

Browse files
committed
Improve error when no solver feature is enabled
1 parent b211d8d commit ceea917

File tree

1 file changed

+6
-0
lines changed
  • crates/tako/src/internal/worker/resources

1 file changed

+6
-0
lines changed

crates/tako/src/internal/worker/resources/solver.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ pub fn create_solver() -> impl LpSolver {
2424
use super::solver_microlp::MicrolpSolver;
2525
MicrolpSolver::new()
2626
}
27+
#[cfg(not(any(feature = "highs", feature = "microlp")))]
28+
{
29+
compile_error!(
30+
"You have to enable either the `highs` or the `microlp` feature using `cargo build ... --features <highs/microlp>`"
31+
)
32+
}
2733
}

0 commit comments

Comments
 (0)