crates-io: Add doc comment for NewCrate struct

This commit is contained in:
Tobias Bieniek 2023-10-06 14:03:48 +02:00
parent 5a2ea19309
commit e287f43006
No known key found for this signature in database

View File

@ -38,6 +38,10 @@ pub struct Crate {
pub max_version: String,
}
/// This struct is serialized as JSON and sent as metadata ahead of the crate
/// tarball when publishing crates to a crate registry like crates.io.
///
/// see <https://doc.rust-lang.org/cargo/reference/registry-web-api.html#publish>
#[derive(Serialize, Deserialize)]
pub struct NewCrate {
pub name: String,