Skip to content

API Reference


Interface: RustCanisterScope

Defined in: docs-entry.ts:659

A Rust canister scope containing all available tasks. Created by calling .make() on a RustCanisterBuilder.

Properties

_tag

_tag: "scope"

Defined in: docs-entry.ts:660


children

children: object

Defined in: docs-entry.ts:661

bindings

bindings: Task

Generates TypeScript/JavaScript bindings from the Candid file.

build

build: Task

Compiles the Rust crate to Wasm using cargo.

config

config: Task

Returns the canister configuration.

create

create: Task

Creates the canister on the replica (allocates canister ID).

deploy

deploy: Task

Smart deployment: creates, builds, and installs in one step.

install

install: Task

Installs or upgrades the Wasm code on the canister.

install_args

install_args: Task

Computes and returns the install arguments.

remove

remove: Task

Removes/deletes the canister from the replica.

status

status: Task

Returns the current canister status (running, stopped, etc.).

stop

stop: Task

Stops the canister.