mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
crates-io: Add doc comment for NewCrate
struct
This commit is contained in:
parent
5a2ea19309
commit
e287f43006
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user