Expand description
RsCNI is a CNI plugin library for Rust.
RsCNI helps you to implement CNI plugins easily by abstracting common operations.
RsCNI offers trait based design for both sync and async CNI plugins.
The entry point is the Plugin struct in the cni or async_cni module.
Your CNI plugin struct should implement the Cni trait defined in the respective module.
Please see rscni-debug for the example implementation.
To use async version of rscni, please use it with feature=async flag.
The usage of async version, see async-rscni-debug.
§Quick start
let my_plugin = MyPlugin;
let plugin = Plugin::default();
plugin.run(&my_plugin).expect("Failed to run CNI plugin");