-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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.
Description
Feature gate: #![feature(c_str_module)]
This is a tracking issue for the std::ffi::c_str module.
Public API
This adds {core, alloc, std}::ffi::c_str modules 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::NulError
And these types are also migrated on the std crate as well.
Steps / History
- API change proposal (ACP)1: ACP:
std::ffi::candstd::ffi::ossubmodules libs-team#134 - Implementation: Add std::ffi::c_str module #112136
- Final comment period (FCP)2
- Stabilization PR
Unresolved Questions
- Should
c_strandc_stringbe separated? This was not discussed in the original ACP. Decision: no.
Footnotes
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.