Skip to content

WireCroc/libwrc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libwrc-rs

Unsafe Rust bindings for libwrc.

Installation

  1. add in Cargo.toml
[dependencies]
libwrc = "*"

Example

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);
}

Contributing

  1. Fork it (https://github.com/wirecroc/libwrc-rs/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Unsafe Rust bindings for libwrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages