| Crates.io | turbo-genesis-sdk |
| lib.rs | turbo-genesis-sdk |
| version | 5.1.0 |
| created_at | 2023-08-19 16:17:19.683429+00 |
| updated_at | 2025-08-29 20:00:04.761786+00 |
| description | Turbo Genesis SDK |
| homepage | |
| repository | https://github.com/super-turbo-society/turbo-genesis-sdk/tree/main/turbo-genesis-sdk |
| max_upload_size | |
| id | 948775 |
| size | 444,283 |

A flexible Rust SDK for building WebAssembly–powered games on the Turbo, with first-class support for graphics, audio, input, and netcode.
Install Turbo
You can find full install instructions on the Turbo Docs
Create your project
turbo init my-turbo-app
This will automatically add the SDK as a dependency in your project's Cargo.toml:
[dependencies]
turbo = { package = "turbo-genesis-sdk", version = "..." }
The SDK version will vary based on the version of turbo installed. It is best to ensure your on the latest version of turbo and the SDK when starting a new project.
Write your code
Open src/lib.rs and drop in:
use turbo::*;
#[turbo::game]
#[derive(BorshDeserialize, BorshSerialize)]
struct MyGame {
greeting: String,
};
impl MyGame {
pub fn new() -> Self {
Self {
greeting: "Hello, Turbo!".to_string(),
}
}
pub fn update(&mut self) {
// Clear the background with a hex color:
clear(0xff00ffff);
// Draw text to the screen:
text!(&self.greeting);
// Draw a rotated square:
rect!(w = 50, h = 50, color = 0xffffffff, rotation_deg = 45);
}
}
Run with Turbo
turbo run -w .
This project is licensed under MIT. See LICENSE for details.