Skip to content

Installation

Terminal window
npm install -g @actcore/act-cli
Terminal window
act --version

ACT components target WebAssembly. You need the nightly Rust toolchain with the wasm32-wasip2 target:

Terminal window
rustup toolchain install nightly
rustup target add wasm32-wasip2 --toolchain nightly
Terminal window
# Using the copier template
pip install copier
copier copy gh:actcore/act-component-template my-component

Or manually — create a new Rust library project:

Terminal window
cargo new --lib my-component
cd my-component

Add dependencies to Cargo.toml:

[lib]
crate-type = ["cdylib"]
[dependencies]
act-sdk = "0.2"