Crates.io | nice-sys |
lib.rs | nice-sys |
version | 0.1.0 |
source | src |
created_at | 2018-03-07 23:57:30.507224 |
updated_at | 2018-03-07 23:57:30.507224 |
description | FFI bindings to libnice |
homepage | |
repository | https://github.com/scottjmaddox/rust-nice-sys |
max_upload_size | |
id | 54478 |
size | 2,389,184 |
Rust FFI bindings to libnice
To add support for a new architecture / operating system pair, follow the directions below.
Install the bindgen
executable with cargo
:
cargo install bindgen
Generate bindings (replace arch
with your target_arch
, and os
with your
target_os
):
bindgen wrapper.h -o src/arch_os.rs -- `pkg-config --cflags nice`
Add a new entry in lib.rs
(replace arch
with your target_arch
, and os
with your target_os
):
#[cfg(all(target_arch = "arch", target_os = "os"))]
mod arch_os;
#[cfg(all(target_arch = "arch", target_os = "os"))]
pub use arch_os::*;
target_arch
options:
target_os
options:
Licensed under either of
at your option.
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.