canic 0.99.13

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
use canic::{Error, canic_query};

#[canic_query(public, composite)]
fn composite_probe() -> Result<(), Error> {
    Ok(())
}

canic::canic_emit_nonroot_auth_attestation_endpoints!();
canic::canic_emit_lifecycle_core_endpoints!();

#[test]
fn canic_query_accepts_composite_marker() {
    std::hint::black_box(composite_probe as fn() -> Result<(), Error>);
}

#[test]
fn nonroot_auth_emitter_exports_active_proof_installer() {
    std::hint::black_box(canic_install_active_delegation_proof);
}

#[test]
fn nonroot_auth_emitter_exports_delegated_token_prepare_get() {
    std::hint::black_box(canic_prepare_delegated_token);
    std::hint::black_box(canic_get_delegated_token);
}

#[test]
fn lifecycle_emitter_exports_controller_activation_status() {
    std::hint::black_box(canic_fleet_activation_status);
    assert_eq!(
        canic::protocol::CANIC_FLEET_ACTIVATION_STATUS,
        canic_core::protocol::CANIC_FLEET_ACTIVATION_STATUS
    );
}