Skip to content

Prepare the crates for publishing at 0.8.0-prerelease - #301

Merged
soareschen merged 3 commits into
mainfrom
prerelease-versions
Nov 16, 2026
Merged

soareschen merged 3 commits into
mainfrom
prerelease-versions

Conversation

@soareschen

@soareschen soareschen commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

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, as cargo-cgp's crates already do. Before this PR, the packages carried the license field but not the license text.

The 24 crates without a README gain a short one that says what the crate provides, where cgp re-exports it, and that most projects depend on cgp alone. The internal macro and test crates say instead that a project has no reason to depend on them. Cargo picks up a crate's README.md without 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 cgp crate'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 use latest, which serves v0.7.0 until v0.8.0 is published.

Impact

hypershell, cgp-serde, and cgp-examples require cgp = "0.8.0-alpha" and patch it to this repository's main. That requirement accepts 0.8.0-prerelease, so all three build against this branch unchanged.

Areas needing attention

The crates were published as 0.8.0-prerelease from this branch's head, acb5f80f. Merging the branch without further commits keeps the merge commit's tree equal to the published one, which the v0.8.0-prerelease tag on the merge commit relies on.

soareschen and others added 3 commits November 16, 2026 21:45
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>
@soareschen
soareschen marked this pull request as ready for review November 16, 2026 21:35
@soareschen
soareschen merged commit 7f65f12 into main Nov 16, 2026
6 checks passed
@soareschen
soareschen deleted the prerelease-versions branch November 16, 2026 21:36
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.

1 participant