feat(publish): publish boxlite-cli via cargo install and cargo binstall#378
Merged
DorianZheng merged 1 commit intomainfrom Mar 13, 2026
Merged
feat(publish): publish boxlite-cli via cargo install and cargo binstall#378DorianZheng merged 1 commit intomainfrom
DorianZheng merged 1 commit intomainfrom
Conversation
Enable boxlite-cli distribution through two install paths: - `cargo install boxlite-cli` (builds from source on crates.io) - `cargo binstall boxlite-cli` (prebuilt binary from GitHub Releases) Changes: - Remove `publish = false`, sync version to workspace (0.7.3) - Add workspace dependency for boxlite with version for crates.io - Add `[package.metadata.binstall]` configuration - Build CLI binary in CI (manylinux container + macOS) - Package and upload CLI tarballs to GitHub Releases - Add Tier 3 crates.io publish step for boxlite-cli - Add version to runtime tarball names for consistency - Update build.rs download URL to match new naming - Add `cli:release` Makefile target - Add `readme = "../README.md"` to boxlite crate (fixes empty crates.io page)
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.
Summary
boxlite-clidistribution viacargo install boxlite-cli(from source) andcargo binstall boxlite-cli(prebuilt binary)boxlitecrateChanges
publish = false, add[package.metadata.binstall], use workspace dep forboxliteboxliteto[workspace.dependencies]with version for crates.ioreadme = "../README.md"(fixes empty crates.io page)boxlite-runtime-v{version}-{target}.tar.gz)rust_target(Rust triple) to platform matrix for cargo-binstall namingcli:releasetargetcargo install/cargo binstallinstructions, remove hardcoded versionTest plan
cargo check -p boxlite-clicompiles with workspace depcargo metadatashows version0.7.3and binstall configBOXLITE_DEPS_STUB=1 cargo publish -p boxlite-cli --dry-run --allow-dirtysucceedscargo install boxlite-cliworks from crates.io after publishcargo binstall boxlite-clidownloads prebuilt binary from GitHub Release