Repository navigation
Closed
0 / 10 of 1 issue completedClosed
0 / 10 of 1 issue completed
Copy link
Labels
Description
Parent spike: #1769. Research the 2026 best practice for publishing Rust crates to crates.io and decide what devkit manages. Overlaps with #1748 (Rust L6 seam templates) — this spike validates #1748's design before it is implemented, and asks whether it should be managed rather than seeded.
Motivation / why
#1748 proposes seeded templates; seeded means each repo owns its copy forever and fixes don't propagate. crates.io versions are permanent (yank ≠ delete), so the lane must be right the first time.
Proposed approach (strawman)
rust-lang/crates-io-auth-actionTrusted Publishing,cargo publish --workspace(atomic, Cargo 1.90+), idempotency precheck against the index,publish = falsedetection.cargo publish --workspace --dry-runas a pre-tag gate in the release-extension seam;cargo set-versionat prepare time.- Evaluate whether
release-plz/cargo-release/cargo-smart-releaseare the 2026 norm and whether devkit should interoperate or stay tool-agnostic.
What already exists
publish-release-extension.yml stub (on dev), #1748 design, scitadel#208 (hand-written reference), cargo-dist recipe in docs/DOWNSTREAM_RELEASE.md.
Scope / questions
- Trusted Publishing status 2026: does crates.io accept reusable-workflow /
job_workflow_refclaims? Requiredenvironment? - Is
cargo publish --workspacerobust enough (partial failure, rate limits on new crates)? -
cargo-semver-checksas a release gate — table stakes or optional? - Prereleases: publish
X.Y.Z-rc.Nto crates.io or not? - Does crates.io support provenance / attestations in 2026 (RFC status)?
Pitfalls
- New-crate rate limits and the "first publish must be manual before Trusted Publishing can be configured" chicken-and-egg (verify if still true).
- Burned versions on partial workspace publish.
- OIDC subject bound to the workflow filename — the managed filename is a forever-contract.
Acceptance criteria
- Dated verdict (verified-on / verified-how) on the 2026 best practice for this channel, with primary sources (registry docs, official actions)
- Gap table: best practice vs. what devkit ships today
- Concrete split: devkit owns (managed) / devkit seeds (template) / repo owns (build recipe, registry registration)
- Prerelease policy for this channel decided
- Implementation issue(s) filed, or an explicit "won't do" with reason
References
Parent: #1769 · #1746 · #1748 · #1523 · #1519 · docs/DOWNSTREAM_RELEASE.md (on dev)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Activity
gerchowl commentedon Sep 29, 2026
Verdict
Make #1748's publish mechanics MANAGED, not seeded. Use
rust-lang/crates-io-auth-actionandcargo publish --workspace, with an index precheck that skips versions already published, apublish = falseaudit and a dry-run gate. Stay tool-agnostic: document release-plz as a supported opt-out, because it owns the whole prepare→tag→publish loop and collides with the train.Facts
cargo publish --workspacehas been stable since Cargo 1.90. Verification is atomic, uploads are not transactional, and a partial failure burns versions.Prereleases
Don't publish
-rc.Nto crates.io by default. They are permanent, and^requirements never resolve to them. Offer an opt-in that requires dottedrc.N.Split
publish=falseaudit,cargo publish --workspace --no-verify(verification already ran in the dry-run, and retries outlive the 30-min token otherwise), 429 backoff honouringRetry-After, and a prerelease guard.release-extension.yml,cargo set-version --workspaceinprepare-release-extension.yml, andcargo-semver-checksas an advisory gate (blocking produces false positives on workspace-versioned crates).publish = falsemarkers,[workspace.package] version, docs.rs metadata.Sources: crates.io TP · RFC 3691 · Cargo changelog · rate limits · tweag on workspace publish
c-vigo commentedon Sep 30, 2026
Spike complete. The dated verdict is in the review above; the cross-cutting decision is recorded in
docs/rfcs/ADR-publish-lanes.md(PR #1785, merged todevas 36e74cc), per #1769's rule that the channel spikes close when the ADR lands.Implementation continues in: #1748 (crates.io lane) (lane foundation: #1778).