#C #string #macro

c_str_macro

c_str macro to create C-compatible string literals

3 stable releases

1.0.2 Nov 21, 2017
1.0.1 Nov 19, 2017

#67 in FFI

Download history 21/week @ 2020-02-05 16/week @ 2020-02-12 17/week @ 2020-02-19 38/week @ 2020-02-26 14/week @ 2020-03-04 15/week @ 2020-03-11 18/week @ 2020-03-18 14/week @ 2020-03-25 15/week @ 2020-04-01 28/week @ 2020-04-08 28/week @ 2020-04-15 15/week @ 2020-04-22 26/week @ 2020-04-29 82/week @ 2020-05-06 176/week @ 2020-05-13 88/week @ 2020-05-20

95 downloads per month
Used in 4 crates (3 directly)

Apache-2.0/MIT

8KB

c_str! macro for Rust

This macro-only crate provides the c_str! macro to facilitate creation of C-compatible string values from Rust string literals.

Legacy code

This repository also contains source code for crate c_string, which is no longer maintained. It provided some utility types to facilitate working with C-compatible strings in Rust, but most of them were poorly designed or do not fit well with the evolution of the language. The topmost commit for that crate is available under branch c-string.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps