smithay
smithay copied to clipboard
Use CStr literals everywhere possible
This addition to the 2021 edition makes it possible to generate a &CStr
at compile-time, with no need for unwrap()
/expect()
or unsafe
, making it much more ergonomic to pass to C APIs.
I’ve also modified the SealedString
constructors to take a &CStr
instead of a CString
since it only needs to use it, not keep ownership of it.
This requires to bump the MSRV to 1.77 so I just did.