Skip to content

Provides a macro for exporting constant, null-terminated, C strings from dynamic libraries written in Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

whipsch/export_cstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This crate is no longer useful.

See PR #18480


Example usage

Cargo.toml:

[lib]
name = "foo"
crate-type = ["dylib"]

[dependencies]
export_cstr = "*"

lib.rs:

#![feature(plugin)]
#[plugin] #[macro_use] extern crate export_cstr;

// implicit #[allow(dead_code, non_upper_case_globals)]
export_cstr!(foo, "this becomes an exported symbol 'foo' which points to a constant, null-terminated, 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.

About

Provides a macro for exporting constant, null-terminated, C strings from dynamic libraries written in Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages