-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request
Milestone
Description
Hi,
If we bump MSRV to Rust 1.77 (Currently at 1.71 based on GH workflow), then I think we could use c"<constant>"
syntax to generate &CStr
constants, which would trim quite a bit of unsafe code, i.e:
pub const kIOKitBuildVersionKey: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"IOKitBuildVersion\0") };
would become:
pub const kIOKitBuildVersionKey: &CStr = c"IOKitBuildVersion";
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request