-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for core_ffi_c #94501
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(core_ffi_c)]This is a tracking issue for providing the aliases for C types (
c_int,c_char, etc) viacore::ffi, not just viastd::os::raw. The ability to interoperate with C code via FFI is not limited to crates usingstd; this allows using these types withoutstd.Public API
The existing types in
std::os::rawwill become type aliases for the ones incore::ffi. This will use type aliases rather than re-exports, to allow the std types to remain stable while the core types are unstable.This also moves the currently unstable
NonZerovariants andc_size_t/c_ssize_t/c_ptrdiff_ttypes tocore::ffi, while leaving them unstable.Steps / History