Skip to content

build: prepare for publish on crates.io#128

Merged
AsakuraMizu merged 9 commits intomainfrom
crate_main
Mar 9, 2026
Merged

build: prepare for publish on crates.io#128
AsakuraMizu merged 9 commits intomainfrom
crate_main

Conversation

@chyyuu
Copy link
Contributor

@chyyuu chyyuu commented Mar 7, 2026

Description

Implementation

Additional Context

Copilot AI review requested due to automatic review settings March 7, 2026 00:21
@chyyuu chyyuu changed the title Crate main Brach: update to publish starry-kernel and starryos Crate main Branch: update to publish starry-kernel and starryos Mar 7, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-kernel and starryos get independent explicit versions, description fields, and pinned dependency versions (gimli, page_table_multiarch) needed for crates.io publishing.
  • New xtask tool: A Rust-based CLI (xtask/src/main.rs) powered by clap is added as a [[bin]] target in the root package, providing rootfs, build, run, test, and publish subcommands.
  • New scripts/test.sh: A five-step Bash test script wrapping the xtask tool 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 AsakuraMizu changed the title Crate main Branch: update to publish starry-kernel and starryos build: prepare for publish on crates.io Mar 9, 2026
@AsakuraMizu AsakuraMizu merged commit 2e075ac into main Mar 9, 2026
@AsakuraMizu AsakuraMizu deleted the crate_main branch March 9, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants