#![cfg_attr(feature = "control-plane", allow(clippy::unused_async))]
#[cfg(feature = "control-plane")]
mod canister {
use canic::prelude::*;
canic::start_root!();
#[expect(clippy::unused_async)]
async fn canic_setup() {}
async fn canic_install() {}
async fn canic_upgrade() {}
#[expect(dead_code)]
pub static WASMS: &[(CanisterRole, &[u8])] = &[];
#[canic_update]
async fn ping() -> Result<String, canic::Error> {
Ok("pong".to_string())
}
canic::cdk::export_candid_debug!();
}
#[cfg(feature = "control-plane")]
fn main() {
println!("minimal_root example");
}
#[cfg(not(feature = "control-plane"))]
fn main() {
println!("minimal_root example requires --features control-plane");
}