Files
third_party_rust_rustix/benches
Dan Gohman 3da762c0c6 Export a zstr! macro for ZStr literals. (#119)
* Export a `zstr!` macro for `ZStr` literals.

Export rustix's `zstr!` macro for creating `ZStr` literals, which can
make passing string literals into rustix APIs more efficient.

While here, improve the safety of the `zstr!` macro -- implement a NUL
check in a way that can be optimized away in the common case, so that
the check can be always enabled, preventing any possibility of UB.
2021-11-18 11:12:43 -08:00
..