-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roadmap for after Rust 1.64? #27
Comments
I completely missed that the
|
The point of this crate was to make the The |
To be honest, I feel now that |
Fine with me, thanks for clarifying.
I think it's a bit too niche to warrant a dedicated literal type, but I hope the standard library will provide the |
Are there any plans to publish a new version (patch or minor) that just reexports the I guess the alternative would be to port those crates from |
I'm happy to accept a PR for that. Now that |
core::ffi::CStr and alloc::ffi::CString have been stabilized for Rust 1.64, which is due to become stable in 9 weeks from now.
Once that has landed, what remains for this crate to do?
from_bytes_with_nul_unchecked
; still, the corresponding core function does not spring to life as const).Do you intend to keep maintaining the crate as a staging ground for constification of the core library, or other experimentation? Is there any user base that can not go to 1.64 speedily, or that can not do the API change toward core library? (A quick survey of the most popular dependents of cstr_core shows they're all in pre-1.0 stage, and I didn't check which of them use CStr types publicly) Or will this library just be deprecated and development ceased?
If it is kept maintained as a staging ground, it may make sense to provide From and Into for the core types (they should be trivial as they can be unchecked); then APIs can pivot to core's interfaces, and whoever needs const methods can still into them and use cstr_core privately.
From the perspective of using it from riot-wrappers, I'm still checking whether there is any constness that I'm missing from the core library, push for constification if needed (pointing to this project to illustrate it works), and plan to make the API break as soon as 1.64 is available.
The text was updated successfully, but these errors were encountered: