build: prepare for publish on crates.io#128
Merged
AsakuraMizu merged 9 commits intomainfrom Mar 9, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prepares starry-kernel and starryos for publication to crates.io by bumping their versions (to 0.2.0-preview.1 and 0.3.0-preview.2 respectively), adding required description fields, and pinning previously wildcard ("*") dependency versions. It also adds a new xtask automation tool for building, running, and testing across architectures, along with a comprehensive scripts/test.sh CI script.
Changes:
- Version and metadata updates:
starry-kernelandstarryosget independent explicit versions,descriptionfields, and pinned dependency versions (gimli,page_table_multiarch) needed for crates.io publishing. - New
xtasktool: A Rust-based CLI (xtask/src/main.rs) powered byclapis added as a[[bin]]target in the root package, providingrootfs,build,run,test, andpublishsubcommands. - New
scripts/test.sh: A five-step Bash test script wrapping thextasktool to check tools, run format checks, per-arch builds and QEMU boot tests, and publish dry-runs.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
kernel/Cargo.toml |
Pins version to 0.2.0-preview.1, adds description, replaces "*" dep versions with explicit ones (gimli, page_table_multiarch) |
Cargo.toml |
Bumps starryos to 0.3.0-preview.2, adds description, adds xtask feature, defines two [[bin]] targets, adds optional clap dependency |
xtask/src/main.rs |
New file: clap-based multi-arch CLI tool implementing rootfs, build, run, test, and publish subcommands |
scripts/test.sh |
New file: Five-step CI script delegating to cargo xtask for per-architecture build, boot, and publish testing |
make/build.mk |
Fixes rust_package extraction by piping through head -1 to avoid multi-match issues |
Cargo.lock |
Reflects dependency version changes: gimli downgraded from 0.33.0 to 0.32.3, starry-kernel and starryos version bumps, clap added |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AsakuraMizu
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implementation
Additional Context