ic-kit 0.5.0-alpha.1a

Blazing fast, fully testable, Canister Developer Kit for the Internet Computer.
Documentation
/// A canister.
pub trait KitCanister {
    /// Create a new instance of this canister using the provided canister id.
    #[cfg(not(target_family = "wasm"))]
    fn build(canister_id: candid::Principal) -> ic_kit_runtime::Canister;

    /// Create a new instance of this canister with the anonymous principal id.
    #[cfg(not(target_family = "wasm"))]
    fn anonymous() -> ic_kit_runtime::Canister {
        Self::build(candid::Principal::anonymous())
    }

    /// The candid description of the canister.
    fn candid() -> String;
}