summary refs log tree commit diff stats
path: root/rust/qemu-api/src/c_str.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rust: introduce a c_str macroPaolo Bonzini2024-11-051-0/+53
This allows CStr constants to be defined easily on Rust 1.63.0, while checking that there are no embedded NULs. c"" literals were only stabilized in Rust 1.77.0. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>