| Crates.io | const-c-str |
| lib.rs | const-c-str |
| version | 0.1.1 |
| created_at | 2019-03-05 21:37:41.224888+00 |
| updated_at | 2019-03-06 20:54:57.16718+00 |
| description | Safely create &CStr at compile time |
| homepage | |
| repository | https://github.com/regiontog/const-c-str |
| max_upload_size | |
| id | 118961 |
| size | 2,360 |
Safely create &CStr at compile time checked with from_bytes_with_nul
use const_c_str::c_str;
#[cfg(feature = "const_cstr_unchecked")]
const greeting: &std::ffi::CStr = c_str!("Hello World!");