rust-nice-sys

Rust FFI bindings to libnice

How To Add a New Arch/OS Pair

To add support for a new architecture / operating system pair, follow the directions below.

Install the bindgen executable with cargo:

sh cargo install bindgen

Generate bindings (replace arch with your target_arch, and os with your target_os):

sh 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):

```rust

[cfg(all(targetarch = "arch", targetos = "os"))]

mod arch_os;

[cfg(all(targetarch = "arch", targetos = "os"))]

pub use arch_os::*; ```

target_arch options:

target_os options:

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.