canic-installer 0.21.6

Published installer and release-set tooling for Canic downstream workspaces
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use canic_installer::release_set::{emit_root_release_set_manifest, workspace_root};
use std::env;

fn main() {
    if let Err(err) = run() {
        eprintln!("{err}");
        std::process::exit(1);
    }
}

// Emit the current build-produced ordinary root release-set manifest from `.dfx` artifacts.
fn run() -> Result<(), Box<dyn std::error::Error>> {
    let workspace_root = workspace_root()?;
    let network = env::var("DFX_NETWORK").unwrap_or_else(|_| "local".to_string());
    let manifest_path = emit_root_release_set_manifest(&workspace_root, &network)?;
    println!("{}", manifest_path.display());
    Ok(())
}