-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Tracking Issue for std::ffi::c_str module #112134
Copy link
Copy link
Closed
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.This issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.The final comment period is finished for this PR / Issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(c_str_module)]This is a tracking issue for the
std::ffi::c_strmodule.Public API
This adds
{core, alloc, std}::ffi::c_strmodules and migrates some existing types into them. Types will still be re-exported in their current places to ensure compatibility.The following migrations are made:
core::ffi::CStr=>core::ffi::c_str::CStrcore::ffi::FromBytesUntilNulError=>core::ffi::c_str::FromBytesUntilNulErrorcore::ffi::FromBytesWithNulError=>core::ffi::c_str::FromBytesWithNulErroralloc::ffi::CString=>alloc::ffi::c_str::CStringalloc::ffi::FromVecWIthNulError=>alloc::ffi::c_str::FromVecWIthNulErroralloc::ffi::IntoStringError=>alloc::ffi::c_str::IntoStringErroralloc::ffi::NulError=>alloc::ffi::c_str::NulErrorAnd these types are also migrated on the
stdcrate as well.Steps / History
std::ffi::candstd::ffi::ossubmodules libs-team#134Unresolved Questions
c_strandc_stringbe separated? This was not discussed in the original ACP. Decision: no.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/api-change-proposals.html ↩
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩