#1139011 librust-bigdecimal-dev: bigdecimal depends on libm version 0.2.6; current version of libm is 0.2.15

Package:
librust-bigdecimal-dev
Source:
librust-bigdecimal-dev
Description:
Arbitrary precision decimal numbers - Rust source code
Submitter:
Georges Khaznadar
Date:
2026-06-06 12:37:02 UTC
Severity:
normal
#1139011#5
Date:
2026-06-06 12:35:04 UTC
From:
To:
Hello, I am trying to package cbor2 (https://tracker.debian.org/pkg/cbor2)
whose code used to be in C++ language, and is now in Rust language.

Here is an excerpt of Cargo.toml which applies to cbor2:
---------------------------------8<--------------------------
[dependencies]
bigdecimal = "0.4.10"
half = "2.7.1"
num-bigint = "*"
pyo3 = { version = "0.28.0", features = ["extension-module", "num-bigint",
"bigdecimal"] }
---------------------------------8<--------------------------

So I added packages librust-bigdecimal-dev, librust-half-dev, librust-pyo3-dev
as build-dependencies for package cbor2.

Unfortunately, the build fails, with the following message:
---------------------------------8<--------------------------
error: failed to select a version for the requirement `libm = "^0.2.6"` (locked
to 0.2.16)
candidate versions found which didn't match: 0.2.15
location searched: directory source `/usr/share/cargo/registry` (which is
replacing registry `crates-io`)
required by package `bigdecimal v0.4.10`
    ... which satisfies dependency `bigdecimal = "^0.4.10"` (locked to 0.4.10)
of package `cbor2 v0.1.0 (/build/cbor2-6.1.2/rust)`
perhaps a crate was updated and forgotten to be re-vendored?
As a reminder, you're using offline mode (--offline) which can sometimes cause
surprising resolution failures, if this error is too confusing you may wish to
retry without `--offline`.
error: `cargo metadata --manifest-path rust/Cargo.toml --format-version 1`
failed with code 101
---------------------------------8<--------------------------

Thank you for any help about this.

Best regards,                     Georges.