Library for working with the Windows Host Compute Network.
use hcn::get_namespace;
let namespace = get_namespace(api_namespace.id.as_str())?;
println!("Namespace id: {}", namespace.id);
See examples folder for more.
The HCN API Schema is exposed as a module that can be used to call the API.
The library also has a low level API that translates the HCN C library to Rust friendly implementation. This is used throughout the project and can provide flexibility if the schema hasn't been updated yet but does require additional steps. See the *_api.rs
in the examples folder
The low level api was originally from https://github.com/rafawo/hcs-rs under MIT. This project updated the API's to use https://github.com/microsoft/windows-rs, updated error handling, changed handle types, added HCN schema and wrappers around the API to simplify its use.