-
Notifications
You must be signed in to change notification settings - Fork 1.7k
support bit fields for C interop #314
Copy link
Copy link
Open
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-ffiFFI related proposals.FFI related proposals.A-repr#[repr(...)] related proposals & ideas#[repr(...)] related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Metadata
Metadata
Assignees
Labels
A-data-typesRFCs about data-typesRFCs about data-typesA-ffiFFI related proposals.FFI related proposals.A-repr#[repr(...)] related proposals & ideas#[repr(...)] related proposals & ideasT-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bitfields are commonly encountered when interacting with C code. Since many of the details of the behavior of bitfields are left to the implementation, it is hard to write cross-platform rust code that uses bitfields correctly. (Source: #1449)
Prior RFCs and other citations: