[Pkg-rust-maintainers] Bug#1103725: Bug#1103725: rust-subversion: FTBFS on many archs: expected raw pointer *const u8, found *const i8
Peter Michael Green
plugwash at debian.org
Mon Apr 21 13:31:01 BST 2025
> Most of the issues appear to be some pointer definition mismatch for
> dirent...
Rust does not have a core type that is directly equivalent to the
c type char, instead it has a type alias core:ffi::c_char (also
rexported as std::ffi::c_char) which, depending on the target
platform, is an alias for either i8 or u8.
Since it's an alias, and not a fully distinct type (unlike
isize/usize which *are* distinct types) you can mix
i8 with c_char on platforms where the c char type
is signed, and mix u8 with c_char on platforms where
the c type char is unsigned, but doing so will result in
unportable code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20250421/e8a32a46/attachment.htm>
More information about the Pkg-rust-maintainers
mailing list