diff --git a/Cargo.lock b/Cargo.lock index ac7e02a6b76..0becc6c67bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -582,7 +582,7 @@ dependencies = [ [[package]] name = "crates-io" -version = "0.39.0" +version = "0.39.1" dependencies = [ "curl", "percent-encoding", diff --git a/crates/crates-io/Cargo.toml b/crates/crates-io/Cargo.toml index d06dacdfa43..f1b92602e9d 100644 --- a/crates/crates-io/Cargo.toml +++ b/crates/crates-io/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crates-io" -version = "0.39.0" +version = "0.39.1" rust-version.workspace = true edition.workspace = true license.workspace = true diff --git a/crates/crates-io/lib.rs b/crates/crates-io/lib.rs index 757241fd344..1764ce527de 100644 --- a/crates/crates-io/lib.rs +++ b/crates/crates-io/lib.rs @@ -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 #[derive(Serialize, Deserialize)] pub struct NewCrate { pub name: String,