feat(build): prepare crates for crates.io publishing#250
Merged
DorianZheng merged 1 commit intomainfrom Feb 13, 2026
Merged
Conversation
Auto-detect crates.io builds via .cargo_vcs_info.json and default to prebuilt mode (BOXLITE_DEPS_STUB=2), so `cargo add boxlite` works without Go, LLVM, or vendored submodules. Changes: - Add auto_detect_registry() to all build.rs files (boxlite + 4 -sys crates) - Add version specs to path dependencies in boxlite/Cargo.toml - Sync -sys crate metadata (version.workspace, repository, exclude vendor) - Add bubblewrap-sys to workspace members - Set publish = false for non-publishable crates (SDKs, CLI, guest) - Add docs.rs metadata to boxlite-shared
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
Enable
cargo add boxlitefor Rust developers by preparing all 6 crates for crates.io publishing..cargo_vcs_info.json(added by Cargo to published packages) and auto-setsBOXLITE_DEPS_STUB=2, so crates.io builds download prebuilt runtime instead of compiling from vendored sourcespublish = falsefor SDKs, CLI, and guest agentPublish order (handled by
cargo publish)Package sizes (all well under 10MB crates.io limit)
Test plan
cargo packagesucceeds for all 6 publishable cratesexclude = ["vendor"])publish = falsecrates skippedcargo publish -p boxlite-shared -p libkrun-sys -p e2fsprogs-sys -p libgvproxy-sys -p bubblewrap-sys -p boxlite(after merge)