summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/crates/crates-io
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 18:31:36 +0000
commite02c5b5930c2c9ba3e5423fe12e2ef0155017297 (patch)
treefd60ebbbb5299e16e5fca8c773ddb74f764760db /src/tools/cargo/crates/crates-io
parentAdding debian version 1.73.0+dfsg1-1. (diff)
downloadrustc-e02c5b5930c2c9ba3e5423fe12e2ef0155017297.tar.xz
rustc-e02c5b5930c2c9ba3e5423fe12e2ef0155017297.zip
Merging upstream version 1.74.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/cargo/crates/crates-io')
-rw-r--r--src/tools/cargo/crates/crates-io/Cargo.toml3
-rw-r--r--src/tools/cargo/crates/crates-io/lib.rs12
2 files changed, 13 insertions, 2 deletions
diff --git a/src/tools/cargo/crates/crates-io/Cargo.toml b/src/tools/cargo/crates/crates-io/Cargo.toml
index 139b8aa97..d06dacdfa 100644
--- a/src/tools/cargo/crates/crates-io/Cargo.toml
+++ b/src/tools/cargo/crates/crates-io/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "crates-io"
-version = "0.38.0"
+version = "0.39.0"
+rust-version.workspace = true
edition.workspace = true
license.workspace = true
repository = "https://github.com/rust-lang/cargo"
diff --git a/src/tools/cargo/crates/crates-io/lib.rs b/src/tools/cargo/crates/crates-io/lib.rs
index 6ce39cefd..757241fd3 100644
--- a/src/tools/cargo/crates/crates-io/lib.rs
+++ b/src/tools/cargo/crates/crates-io/lib.rs
@@ -73,6 +73,16 @@ pub struct NewCrateDependency {
pub registry: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub explicit_name_in_toml: Option<String>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub artifact: Option<Vec<String>>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub bindep_target: Option<String>,
+ #[serde(default, skip_serializing_if = "is_false")]
+ pub lib: bool,
+}
+
+fn is_false(x: &bool) -> bool {
+ *x == false
}
#[derive(Deserialize)]
@@ -132,7 +142,7 @@ pub enum Error {
#[error(transparent)]
Curl(#[from] curl::Error),
- /// Error from seriailzing the request payload and deserialzing the
+ /// Error from seriailzing the request payload and deserializing the
/// response body (like response body didn't match expected structure).
#[error(transparent)]
Json(#[from] serde_json::Error),