### Installing Turbo CLI and WASM Target (Shell) Source: https://github.com/super-turbo-society/turbo-genesis-sdk/blob/main/README.md This snippet provides shell commands to install the Turbo CLI tool and add the `wasm32-unknown-unknown` target to Rustup, which is a prerequisite for compiling Rust code to WebAssembly for the Turbo platform. ```sh curl -sSfL https://turbo.computer/install.sh | sh ``` ```sh rustup target add wasm32-unknown-unknown ``` -------------------------------- ### Creating a New Turbo Project (Bash) Source: https://github.com/super-turbo-society/turbo-genesis-sdk/blob/main/README.md This command initializes a new Turbo project with a specified name, setting up the basic directory structure and automatically configuring the `turbo-genesis-sdk` as a dependency in the project's `Cargo.toml` file. ```bash turbo init my-turbo-app ``` -------------------------------- ### Basic Turbo Application Initialization (Rust) Source: https://github.com/super-turbo-society/turbo-genesis-sdk/blob/main/README.md This Rust code demonstrates a minimal Turbo application. It utilizes the `turbo::go!` macro to define the main application loop, clearing the background with a specific color, drawing text, and rendering a rotated square on the screen. ```rs use turbo::prelude::*; turbo::go!({ // Clear the background with a hex color: clear(0xff00ffff); // Draw text to the screen: text!("Hello, Turbo!"); // Draw a rotated square: rect!(w = 50, h = 50, color = 0xffffffff, rotation_deg = 45); }); ``` -------------------------------- ### Running a Turbo Project (Shell) Source: https://github.com/super-turbo-society/turbo-genesis-sdk/blob/main/README.md This shell command executes the Turbo project, typically compiling the Rust source code to WebAssembly and running it within the Turbo environment. The `-w .` flag enables live reloading by watching for changes in the current directory. ```sh turbo run -w . ``` -------------------------------- ### Adding Turbo Genesis SDK Dependency (TOML) Source: https://github.com/super-turbo-society/turbo-genesis-sdk/blob/main/README.md This TOML snippet illustrates how the `turbo-genesis-sdk` is declared as a dependency within the `Cargo.toml` file. It specifies the package name and uses a wildcard for the version, indicating that any compatible version can be used. ```toml [dependencies] turbo = { package = "turbo-genesis-sdk", version = "*" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.