greentic-component 0.5.2

High-level component loader and store for Greentic components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[cfg(feature = "cli")]
use anyhow::Result;
#[cfg(feature = "cli")]
use greentic_component::cmd::hash;

#[cfg(not(feature = "cli"))]
fn main() {
    eprintln!("component-hash requires the `cli` feature");
    std::process::exit(1);
}

#[cfg(feature = "cli")]
fn main() -> Result<()> {
    hash::run(hash::parse_from_cli())
}