From a75d3f27c92a0e0bbc57be45eaa73c1922920303 Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Tue, 23 Jun 2026 17:53:20 +0200 Subject: [PATCH 1/2] Bundle SCIP 10.0.2 (scipoptsuite-deploy v0.12.0) --- bundled.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundled.rs b/bundled.rs index ffdd02b..141771b 100644 --- a/bundled.rs +++ b/bundled.rs @@ -47,10 +47,11 @@ pub fn download_scip() { // TODO: enable this when debug builds are available // let url = format!( - // "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.9.0/libscip-{os_string}{debug_str}.zip", + // "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.12.0/libscip-{os_string}{debug_str}.zip", // ); + // v0.12.0 ships SCIP 10.0.2 / SoPlex 8.0.2 / GCG 4.0.2 / IPOPT 3.14.19. let url = format!( - "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.9.0/libscip-{os_string}.zip", + "https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.12.0/libscip-{os_string}.zip", ); download_and_extract_zip(&url, &extract_path) From 4f9e5b2df0957d25c86f03e96003b8fed55e8900 Mon Sep 17 00:00:00 2001 From: Mohammed Ghannam Date: Tue, 23 Jun 2026 18:00:36 +0200 Subject: [PATCH 2/2] Neutralize SCIP_DEPRECATED for bindgen (fixes Windows enum parse) --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index 9208071..bb6355f 100644 --- a/build.rs +++ b/build.rs @@ -212,6 +212,10 @@ fn main() -> Result<(), Box> { let derive_casted_constant = DeriveCastedConstant::new().target("SCIP_INVALID"); let builder = builder + // SCIP 10 annotates the deprecated `SCIP_VARTYPE_IMPLINT` enumerator with + // `SCIP_DEPRECATED`. On Windows that expands to `__declspec(deprecated)`, + // which clang cannot parse inside an enum; neutralize the macro for bindgen. + .clang_arg("-DSCIP_DEPRECATED=") .blocklist_item("FP_NAN") .blocklist_item("FP_INFINITE") .blocklist_item("FP_ZERO")