cty icon indicating copy to clipboard operation
cty copied to clipboard

future of this crate given that `c_*` types have moved from std to core?

Open decathorpe opened this issue 1 year ago • 2 comments

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?

decathorpe avatar Sep 23 '22 14:09 decathorpe

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)?

madsmtm avatar Sep 23 '22 14:09 madsmtm

Oh, right, I forgot about the #[deprecated] annotation. That sounds like a good solution :)

decathorpe avatar Sep 23 '22 14:09 decathorpe