cty
cty copied to clipboard
future of this crate given that `c_*` types have moved from std to core?
With the release of Rust 1.64.0, all c_*
types have moved from std
into core
^0, 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)^2 - 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)?
Oh, right, I forgot about the #[deprecated]
annotation. That sounds like a good solution :)