Installation
Install act-cli
Section titled “Install act-cli”npm install -g @actcore/act-clipip install actcorecargo install act-cliVerify Installation
Section titled “Verify Installation”act --versionRust Toolchain Setup
Section titled “Rust Toolchain Setup”ACT components target WebAssembly. You need the nightly Rust toolchain with the wasm32-wasip2 target:
rustup toolchain install nightlyrustup target add wasm32-wasip2 --toolchain nightlyScaffold a Component
Section titled “Scaffold a Component”# Using the copier templatepip install copiercopier copy gh:actcore/act-component-template my-componentOr manually — create a new Rust library project:
cargo new --lib my-componentcd my-componentAdd dependencies to Cargo.toml:
[lib]crate-type = ["cdylib"]
[dependencies]act-sdk = "0.2"