Skip to content

Incorrect HiGHS 1.13.1 with v1.14.2 #51

Description

@Thell

I am not sure if this is a 'me', 'you' or 'them' issue but with the latest cargo crate version:

~\Workspaces\rust
❯ cd .\highs-sys-callback-test2\

Workspaces\rust\highs-sys-callback-test2
❯ cargo init
    Creating binary (application) package
note: see more `Cargo.toml` keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

highs-sys-callback-test2 on  master [?] is 📦 v0.1.0 via 🦀 v1.94.0
❯ cargo add highs-sys
    Updating crates.io index
      Adding highs-sys v1.14.2 to dependencies
             Features:
             + build
             + highs_release
             - discover
             - libz
             - ninja
    Updating crates.io index
     Locking 30 packages to latest Rust 1.94.0 compatible versions

highs-sys-callback-test2 on  master [?] is 📦 v0.1.0 via 🦀 v1.94.0
❯ explorer .

highs-sys-callback-test2 on  master [?] is 📦 v0.1.0 via 🦀 v1.94.0
❯ # copied main.rs

highs-sys-callback-test2 on  master [?] is 📦 v0.1.0 via 🦀 v1.94.0
❯ cargo run
   Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.24
   Compiling glob v0.3.3
   Compiling quote v1.0.45
   Compiling libc v0.2.186
   Compiling prettyplease v0.2.37
   Compiling shlex v1.3.0
   Compiling memchr v2.8.0
   Compiling regex-syntax v0.8.10
   Compiling minimal-lexical v0.2.1
   Compiling windows-link v0.2.1
   Compiling find-msvc-tools v0.1.9
   Compiling either v1.16.0
   Compiling bindgen v0.72.1
   Compiling log v0.4.29
   Compiling rustc-hash v2.1.2
   Compiling libloading v0.8.9
   Compiling bitflags v2.11.1
   Compiling itertools v0.13.0
   Compiling clang-sys v1.8.1
   Compiling cc v1.2.62
   Compiling nom v7.1.3
   Compiling regex-automata v0.4.14
   Compiling syn v2.0.117
   Compiling cmake v0.1.58
   Compiling cexpr v0.6.0
   Compiling regex v1.12.3
   Compiling highs-sys v1.14.2
   Compiling highs-sys-callback-test2 v0.1.0 (C:\Users\thell\Workspaces\rust\highs-sys-callback-test2)
warning: unused variable: `message`
 --> src\main.rs:7:5
  |
7 |     message: *const i8,
  |     ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
  |
  = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

warning: `highs-sys-callback-test2` (bin "highs-sys-callback-test2") generated 1 warning (run `cargo fix --bin "highs-sys-callback-test2" -p highs-sys-callback-test2` to apply 1 suggestion)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s
     Running `target\debug\highs-sys-callback-test2.exe`
Running HiGHS 1.13.1 (git hash: n/a): Copyright (c) 2026 under MIT licence terms

Note the Running HiGHS version is 1.13.1 yet highs-sys v1.14.2 was built. And when I check the build artifacts it is indeed 1.13.1 being built. So it looks like a version mismatch but looking at the git submodule version of the 1.14.2 tag it looks like the right hash 7df0786 so I am a bit mystified.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions