{"id":51035669,"url":"https://github.com/petitstrawberry/scarlet-sdk","last_synced_at":"2026-06-22T05:32:25.382Z","repository":{"id":364050751,"uuid":"1265948126","full_name":"petitstrawberry/scarlet-sdk","owner":"petitstrawberry","description":"Build tools for Scarlet.","archived":false,"fork":false,"pushed_at":"2026-06-11T11:44:53.000Z","size":39,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T13:24:00.490Z","etag":null,"topics":["build-system","build-tool","cargo-plugin","osdev","rust","scarlet"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petitstrawberry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T07:53:16.000Z","updated_at":"2026-06-11T11:44:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/petitstrawberry/scarlet-sdk","commit_stats":null,"previous_names":["petitstrawberry/scarlet-sdk"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/petitstrawberry/scarlet-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petitstrawberry%2Fscarlet-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petitstrawberry%2Fscarlet-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petitstrawberry%2Fscarlet-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petitstrawberry%2Fscarlet-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petitstrawberry","download_url":"https://codeload.github.com/petitstrawberry/scarlet-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petitstrawberry%2Fscarlet-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34636427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-system","build-tool","cargo-plugin","osdev","rust","scarlet"],"created_at":"2026-06-22T05:32:23.721Z","updated_at":"2026-06-22T05:32:25.374Z","avatar_url":"https://github.com/petitstrawberry.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scarlet-sdk\n\nBuild tools for [Scarlet](https://github.com/petitstrawberry/Scarlet).\n\n## Installing\n\n```bash\ncargo install --git https://github.com/petitstrawberry/scarlet-sdk cargo-scarlet\ncargo install --git https://github.com/petitstrawberry/scarlet-sdk cargo-scarlet-plugin-limine\n```\n\nOr from a local clone:\n\n```bash\ngit clone https://github.com/petitstrawberry/scarlet-sdk.git\ncd scarlet-sdk\ncargo install --path cargo-scarlet\ncargo install --path cargo-scarlet-plugin-limine\n```\n\n## Tools\n\n| Package | Binary | Description |\n|---------|--------|-------------|\n| `cargo-scarlet` | `cargo-scarlet` | Build system CLI — reads `scarlet.toml`, builds kernel, composes images |\n| `cargo-scarlet-plugin-limine` | `cargo-scarlet-plugin-limine` | Limine UEFI boot image plugin |\n\n## Quick Start: Creating a Project\n\n```bash\n# Scaffold a new project with a local kernel source\ncargo scarlet new --project my-board --target riscv64gc-unknown-none-elf --kernel-path /path/to/kernel\n\n# Or with a git source (defaults to github.com/petitstrawberry/Scarlet)\ncargo scarlet new --project my-board --target riscv64gc-unknown-none-elf\ncargo scarlet new --project my-board --target riscv64gc-unknown-none-elf --kernel-rev v0.17.0\n```\n\nThis generates:\n\n```\nmy-board/\n├── Cargo.toml\n├── build.rs\n├── scarlet.toml\n├── src/main.rs                           # TODO: implement arch_start_kernel\n├── lds/                                  # TODO: add linker script\n├── .cargo/config.toml                    # TODO: set target, build-std, runner, rustflags\n└── .scarlet/scarlet-modules/             # auto-generated by cargo-scarlet — do not edit\n    ├── Cargo.toml\n    ├── src/lib.rs\n    └── .cargo/config.toml                # auto-generated template — do not edit\n```\n\nAfter scaffolding, you need to:\n\n1. Edit `.cargo/config.toml` — set `build.target`, `unstable.build-std`, `runner`, and `rustflags` (linker script path)\n2. Add a linker script to `lds/`\n3. Implement the boot entry in `src/main.rs` (e.g. call `scarlet::arch::riscv64::boot::limine::limine_entry()`)\n\nFiles under `.scarlet/` are auto-generated by cargo-scarlet. Do not edit them.\n\nThen build and run:\n\n```bash\ncargo scarlet image --project my-board\ncargo scarlet run --project my-board --release\n```\n\n## Quick Start: Creating a Loadable Scarlet Module (LSM)\n\n```bash\ncargo scarlet new --lsm my-module\n```\n\nThis generates a loadable scarlet module with `Cargo.toml`, `module.toml`, `build.rs`, and `src/lib.rs`.\n\n```bash\n# Build the LSM\ncargo scarlet build --lsm my-module --target riscv64gc-unknown-none-elf\n```\n\n## Commands\n\n```bash\ncargo scarlet build --project \u003cpath\u003e              # Build kernel binary\ncargo scarlet check --project \u003cpath\u003e              # Type-check without building\ncargo scarlet clippy --project \u003cpath\u003e             # Run clippy\ncargo scarlet image --project \u003cpath\u003e              # Build kernel + compose images\ncargo scarlet run --project \u003cpath\u003e --release      # Build images and launch runner\ncargo scarlet update --project \u003cpath\u003e             # Resolve git/URL sources, write lock\ncargo scarlet new --project \u003cname\u003e --target \u003ctriple\u003e  # Scaffold new project\ncargo scarlet new --lsm \u003cname\u003e                       # Scaffold new loadable scarlet module\n```\n\n## Documentation\n\nSee [Scarlet Build System docs](https://github.com/petitstrawberry/Scarlet/tree/main/docs/build-system) for the full specification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetitstrawberry%2Fscarlet-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetitstrawberry%2Fscarlet-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetitstrawberry%2Fscarlet-sdk/lists"}