Closed bratkartoffel closed 10 months ago
div_ceil
was stabilized in Rust 1.73. We don't generally try to support Rust versions older than the current stable. Are you able to update your Rust installation?
Currently alpine does not support rust 1.73 yet and I don't know exactly when it will upgrade. Furthermore I'm pretty sure it will upgrade only on the unstable branch and not the release branches, like v3.18 or v3.19. Backporting compiler upgrades usually only happen when there are security related fixes, not feature upgrades alone as they're known to break things from time to time.
As far as I can see, Ubuntu 22.04 LTS is still von rust 1.70 and I'm sure other distributions are also somewhere between 1.70 and 1.72.
From a maintainer perspective it's not easy to support a package which depends only on the latest version of a compiler. Can you please maintain some level of compatibility with older compilers?
Edit: Is there any workaround / patch / compiler option I could use to make it work again?
Edit-2: I've created a patch as a workaround: https://gitlab.alpinelinux.org/alpine/aports/-/blob/329bc200017f4593b3cec801e4565eeb4397802c/community/java-libsignal-client/div_ceil-rust-workaround.patch
v0.38.0 removes the use of div_ceil
and checks compatibility against Rust 1.72 (already required by some of our dependencies in the full workspace). But as noted in the readme, "Use outside of Signal is unsupported"; ultimately we are not writing this library to be used as a dependency for the standard Linux packaging systems, and may still bump the minimum required tools version. If you don't have access to the required Rust version, you have the imperfect option of staying on an older libsignal instead.
(That said, we're not planning to bump the version capriciously, now that this has been pointed out. It's more likely to be a new language feature that drives the change, such as Return Position impl Trait
In Traits.)
Hi,
I can't compile latest release on alpine linux due to the following error:
Installed toolchain:
The previous version (v0.36.1) compiles fine.
Ref: