Cargo.toml:
```toml [lib] name = "foo" crate-type = ["dylib"]
[dependencies] export_cstr = "*" ```
lib.rs:
```rust
extern crate libc; use libc::c_char;
export_cstr!(FOO, "this becomes an exported symbol 'FOO' which points to a constant, null-terminated, C string");
// ... ```