See more documentation at https://docs.rs/turbo-genesis-sdk/latest/turbo_genesis_sdk/
First, create a project:
cargo init --lib your-project-name
Add the sdk as a dependency in Cargo.toml
:
[dependencies]
turbo = { package = "turbo-genesis-sdk" }
Open src/lib.rs
and add the following:
turbo::go! {
text!("Hello, world!!!");
}
Build with the following command:
cargo build --target wasm32-unknown-unknown
Run your game with Turbo
turbo run -w .