Probably because Rust always expresses strings as [u8], all const char* parameters in the NIF API were translated as u8 or uchar. The correct type for these is std::ffi::c_char which is particularly relevant on systems that use a signed char type by default (see #584).
Probably because Rust always expresses strings as
[u8]
, allconst char*
parameters in the NIF API were translated asu8
oruchar
. The correct type for these isstd::ffi::c_char
which is particularly relevant on systems that use a signedchar
type by default (see #584).