From d78aa77f730cea6a2ad64ef4ee6f91f92a46e276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 26 Feb 2026 21:13:48 +0100 Subject: [PATCH 1/2] Fix build of highs with `--no-default-features` --- crates/hyperqueue/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hyperqueue/Cargo.toml b/crates/hyperqueue/Cargo.toml index 72f63e78b..60c539828 100644 --- a/crates/hyperqueue/Cargo.toml +++ b/crates/hyperqueue/Cargo.toml @@ -57,7 +57,7 @@ crossterm = { version = "0.29", features = ["event-stream"], optional = true } unicode-width = { version = "0.2", optional = true } # Tako -tako = { path = "../tako" } +tako = { path = "../tako", default-features = false } # Optional dependencies jemallocator = { version = "0.5", optional = true } From dd7c7c66cae621dceb9d91d205fbec8ff7c4dde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 26 Feb 2026 21:15:10 +0100 Subject: [PATCH 2/2] Improve error when no solver feature is enabled --- crates/tako/src/internal/worker/resources/solver.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/tako/src/internal/worker/resources/solver.rs b/crates/tako/src/internal/worker/resources/solver.rs index c2596bb39..86817ae76 100644 --- a/crates/tako/src/internal/worker/resources/solver.rs +++ b/crates/tako/src/internal/worker/resources/solver.rs @@ -24,4 +24,10 @@ pub fn create_solver() -> impl LpSolver { use super::solver_microlp::MicrolpSolver; MicrolpSolver::new() } + #[cfg(not(any(feature = "highs", feature = "microlp")))] + { + compile_error!( + "You have to enable either the `highs` or the `microlp` feature using `cargo build ... --features `" + ) + } }