PyO3 / pyo3

Rust bindings for the Python interpreter
https://pyo3.rs
Other
11.44k stars 693 forks source link

Emit `c""` literals from macros on Rust 1.77+ #4261

Closed davidhewitt closed 1 week ago

davidhewitt commented 2 weeks ago

See https://github.com/PyO3/pyo3/pull/4255#discussion_r1641271579

We should explore changing our macro implementation to prefer c"" literals over invoking our backwards-compatibility c_str!("") macro. This should lead to cleaner generated code & better compile times on sufficiently new Rust compilers.