Feature gate: #![feature(proc_macro_c_str_literals)]
This is a tracking issue for C String literals in proc macros under #105723 and #118560, with an implementation in #119651.
This feature adds an API to construct a proc_macro::Literal C string directly.
Public API
let lit: Literal = Literal::c_string(&CString::new("Hello, world!").unwrap());
Steps / History
Unresolved Questions
Feature gate:
#![feature(proc_macro_c_str_literals)]This is a tracking issue for C String literals in proc macros under #105723 and #118560, with an implementation in #119651.
This feature adds an API to construct a
proc_macro::LiteralC string directly.Public API
Steps / History
Unresolved Questions