ic-build 0.5.0

Cargo and Wasm builds, exact inputs and retained artifact caches
Documentation
// Each integration target uses only the fixtures it needs.
#![allow(dead_code)]

pub mod wait;

use std::path::{Path, PathBuf};

pub fn wasm_path(target_dir: &Path, crate_name: &str, profile_target_dir: &str) -> PathBuf {
    target_dir
        .join("wasm32-unknown-unknown")
        .join(profile_target_dir)
        .join(format!("{crate_name}.wasm"))
}

pub fn unique_temp_directory(label: &str) -> PathBuf {
    ic_host_fs::testing::create_fixture_directory(
        &std::env::temp_dir(),
        &format!("ic-testkit-{label}"),
    )
    .expect("create integration-test directory")
}