canic-wasm-store 0.99.21

Canonical Canic wasm_store canister crate
Documentation
1
2
3
4
5
6
7
8
fn main() {
    let config_path_env = canic::__internal::core::role_contract::CANONICAL_BUILD_CONFIG_PATH_ENV;
    println!("cargo:rerun-if-env-changed={config_path_env}");

    let config_path = std::env::var(config_path_env).unwrap_or_else(|_| "canic.toml".to_string());

    canic::build!(config_path);
}