Unsafe Rust bindings for libwrc.
- add in Cargo.toml
[dependencies]
libwrc = "*"
fn main() {
let cap: mut wrc;
let ifc: wc_iflist = wrc_get_interfaces();
wrc_default(cap);
let opts = wrc_setopts(&cap, ifc.ifc[2], PA_NULL, 0);
if opts != 0 {
print!("setopts error\n");
exit(0);
}
wrc_cap(cap, STDOUT, DEFAULT_CAP);
wrc_destroy(cap);
}
- Fork it (https://github.com/wirecroc/libwrc-rs/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Nikolaycc - creator and maintainer