[Pkg-rust-maintainers] Bug#1129190: jujutsu FTBFS: error[E0432]: unresolved import `rand::rngs::OsRng`
Santiago Vila
sanvila at debian.org
Mon Mar 30 10:54:34 BST 2026
On Mon, Mar 30, 2026 at 11:56:19AM +0300, Adrian Bunk wrote:
> This might have been a toolchain error?
>
> 25 | use rand::rngs::OsRng;
> | ^^^^^^^^^^^^^^^^^ no `OsRng` in `rngs`
> ...
I don't know rust to tell, but it does not look like a toolchain error to me.
Apparently the package is trying to be "compatible with old dependencies"
via 0001-Disable-unneded-deps-support-older-deps-as-needed.patch.
After applying the patch, Cargo.toml says
rand = ">=0.8.5"
so this looks like breaking changes in rand 0.9 to which the package
should adapt. I see that librust-rand-dev in unstable is already at 0.10.0,
so maybe trying to support old dependencies is the root of the problem here.
Thanks.
More information about the Pkg-rust-maintainers
mailing list