Feature request: Draft crates and versions #10567
hvenev-insait
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My understanding of the deletion policy is that it only applies to whole crates and not to individual versions. For any crate that has had any version available for longer than 3 days, or for which there are dependencies for any version, no version can be deleted.
Even if one version of a crate was uploaded correctly, this does not mean that mistakes will never happen in the future. Therefore I think it should be possible for new uploads to new or existing crates to have a "draft" status.
A draft version is somewhat similar to a yanked version, with the primary differences being that:
In order to facilitate easier testing of draft versions, as well as the publishing of non-trivial dependency chains:
.crate
tarball is created,draft = true
is removed from all dependency specifications inCargo.toml
. However,Cargo.lock
may still refer to draft versions.Cargo.lock
) exist and are non-draft.This can also be integrated with API token permissions:
publish-draft
, permits the creation of draft versions of new and existing crates. It does not permit marking versions as non-draft.publish-new
andpublish-update
permissions are required to mark versions as non-draft.Finally, in order to avoid the creation of a "draft-only" ecosystem,
Beta Was this translation helpful? Give feedback.
All reactions