You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of Rust 1.64.0, all c_* types have moved from std into core12, so they are now available in no_std contexts starting with this Rust version, as well. Can cty start to re-export these type definitions from core if they are available, or should dependent crates just start depending on core::ffi::* directly instead?
It also looks like the remaining *_t types (i.e. int64_t) are already translated into equivalent Rust types (i.e. i64) by bindgen (except intmax_t and uintmax_t, for whatever reason)3 - are these type aliases still useful?
I guess cty can be useful for people with lower MSRV - but that's about it. Maybe a new version could note the crate as deprecated (#![deprecated = "use the new `core::ffi` module instead"]) (along with the re-export)?
With the release of Rust 1.64.0, all
c_*
types have moved fromstd
intocore
12, so they are now available inno_std
contexts starting with this Rust version, as well. Cancty
start to re-export these type definitions fromcore
if they are available, or should dependent crates just start depending oncore::ffi::*
directly instead?It also looks like the remaining
*_t
types (i.e.int64_t
) are already translated into equivalent Rust types (i.e.i64
) by bindgen (exceptintmax_t
anduintmax_t
, for whatever reason)3 - are these type aliases still useful?Footnotes
https://doc.rust-lang.org/core/ffi/index.html ↩
https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#c-compatible-ffi-types-in-core-and-alloc ↩
https://github.com/rust-lang/rust-bindgen/blob/v0.60.1/src/codegen/mod.rs#L4669-L4696 ↩
The text was updated successfully, but these errors were encountered: