Repository navigation
Prepare the crates for publishing at 0.8.0-prerelease - #301
Merged
Merged
Conversation
The workspace and every crate move from 0.8.0-alpha to 0.8.0-prerelease, the version the publish dry run packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each published crate links the workspace LICENSE, so cargo packages a copy of the Apache-2.0 text with it; the packages carried only the license field before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each crate that lacked a README gains one describing what it provides, where the cgp crate re-exports it, and where to learn more, so its crates.io page explains it. The cgp crate's README links each construct it names to its docs.rs page, and #[implicit] to its reference page, since it has no API item of its own. cgp-macro-test-util's README links the test suite's rules and its companion crate by URL, since relative links do not resolve on crates.io. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Overview
[claude-opus-5-5] The crates move to version
0.8.0-prerelease, and every published crate now ships a README and the license text. The workspace can then be published as a pre-release ahead of v0.8.0, with a crates.io page that explains each crate.Approach
Each crate links the workspace
LICENSE, and cargo packages the file the link points to, ascargo-cgp's crates already do. Before this PR, the packages carried thelicensefield but not the license text.The 24 crates without a README gain a short one that says what the crate provides, where
cgpre-exports it, and that most projects depend oncgpalone. The internal macro and test crates say instead that a project has no reason to depend on them. Cargo picks up a crate'sREADME.mdwithout a manifest field.cgp-macro-test-util's existing README now links the test suite's rules and its companion crate by URL, because relative links do not resolve on crates.io.The
cgpcrate's README, which is also its crate doc, links each construct it names to the construct's docs.rs page, and#[implicit], which has no rustdoc item, to its reference page on the website. It also drops its License section. The docs.rs links uselatest, which serves v0.7.0 until v0.8.0 is published.Impact
hypershell,cgp-serde, andcgp-examplesrequirecgp = "0.8.0-alpha"and patch it to this repository'smain. That requirement accepts0.8.0-prerelease, so all three build against this branch unchanged.Areas needing attention
The crates were published as
0.8.0-prereleasefrom this branch's head,acb5f80f. Merging the branch without further commits keeps the merge commit's tree equal to the published one, which thev0.8.0-prereleasetag on the merge commit relies on.