zstr

Crates.iozstr
lib.rszstr
version0.1.1
sourcesrc
created_at2021-04-13 10:08:02.053569
updated_at2022-04-27 06:57:12.908834
descriptionZero-terminated C string literals
homepage
repositoryhttps://github.com/H2CO3/zstr/
max_upload_size
id382808
size6,304
Árpád Goretity  (H2CO3)

documentation

https://docs.rs/zstr

README

zstr!: Zero-terminated C string literals

This crate provides a minimal, safe, zero-cost function-like procedural macro, zstr!(), that creates 0-terminated &'static CStr values from regular Rust string (or byte string) literals.

The basic usage is:

let c_str = zstr!("Hello World!");

See the documentation for more examples.

Commit count: 3

cargo fmt