mirror of
https://github.com/astral-sh/uv
synced 2026-06-21 13:47:25 +00:00
Update toml-edit to v0.25 (#19405)
This commit is contained in:
Generated
+10
-22
@@ -3429,7 +3429,7 @@ version = "3.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
|
||||
dependencies = [
|
||||
"toml_edit 0.25.4+spec-1.1.0",
|
||||
"toml_edit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -5257,21 +5257,6 @@ dependencies = [
|
||||
"serde_core",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_edit"
|
||||
version = "0.24.0+spec-1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8c740b185920170a6d9191122cafef7010bd6270a3824594bff6784c04d7f09e"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"serde_core",
|
||||
"serde_spanned",
|
||||
"toml_datetime 0.7.5+spec-1.1.0",
|
||||
"toml_parser",
|
||||
"toml_writer",
|
||||
"winnow",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_edit"
|
||||
version = "0.25.4+spec-1.1.0"
|
||||
@@ -5279,8 +5264,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7193cbd0ce53dc966037f54351dbbcf0d5a642c7f0038c382ef9e677ce8c13f2"
|
||||
dependencies = [
|
||||
"indexmap",
|
||||
"serde_core",
|
||||
"serde_spanned",
|
||||
"toml_datetime 1.0.0+spec-1.1.0",
|
||||
"toml_parser",
|
||||
"toml_writer",
|
||||
"winnow",
|
||||
]
|
||||
|
||||
@@ -5756,7 +5744,7 @@ dependencies = [
|
||||
"tokio-stream",
|
||||
"tokio-util",
|
||||
"toml",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"tracing-durations-export",
|
||||
"tracing-subscriber",
|
||||
@@ -6024,7 +6012,7 @@ dependencies = [
|
||||
"tempfile",
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"uv-auth",
|
||||
"uv-cache-key",
|
||||
@@ -6896,7 +6884,7 @@ dependencies = [
|
||||
"serde-untagged",
|
||||
"serde_json",
|
||||
"thiserror 2.0.18",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"url",
|
||||
"uv-cache-key",
|
||||
@@ -7081,7 +7069,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tokio-stream",
|
||||
"toml",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"url",
|
||||
"uv-cache-key",
|
||||
@@ -7261,7 +7249,7 @@ dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.18",
|
||||
"toml",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"uv-cache",
|
||||
"uv-dirs",
|
||||
@@ -7415,7 +7403,7 @@ dependencies = [
|
||||
"thiserror 2.0.18",
|
||||
"tokio",
|
||||
"toml",
|
||||
"toml_edit 0.24.0+spec-1.1.0",
|
||||
"toml_edit",
|
||||
"tracing",
|
||||
"uv-build-backend",
|
||||
"uv-cache-key",
|
||||
|
||||
+1
-1
@@ -270,7 +270,7 @@ tokio = { version = "1.40.0", features = [
|
||||
tokio-stream = { version = "0.1.16" }
|
||||
tokio-util = { version = "0.7.12", features = ["compat", "io"] }
|
||||
toml = { version = "0.9.2", features = ["fast_hash"] }
|
||||
toml_edit = { version = "0.24.0", features = ["serde"] }
|
||||
toml_edit = { version = "0.25.4", features = ["serde"] }
|
||||
tracing = { version = "0.1.40" }
|
||||
tracing-durations-export = { version = "0.3.0", features = ["plot"] }
|
||||
tracing-subscriber = { version = "0.3.18" } # Default feature set for uv_build, uv activates extra features
|
||||
|
||||
@@ -1709,8 +1709,16 @@ where
|
||||
time: Some(toml_edit::Time {
|
||||
hour: u8::try_from(timestamp.hour()).map_err(serde::ser::Error::custom)?,
|
||||
minute: u8::try_from(timestamp.minute()).map_err(serde::ser::Error::custom)?,
|
||||
second: u8::try_from(timestamp.second()).map_err(serde::ser::Error::custom)?,
|
||||
nanosecond: u32::try_from(timestamp.nanosecond()).map_err(serde::ser::Error::custom)?,
|
||||
second: Some(u8::try_from(timestamp.second()).map_err(serde::ser::Error::custom)?),
|
||||
nanosecond: {
|
||||
let nanosecond =
|
||||
u32::try_from(timestamp.nanosecond()).map_err(serde::ser::Error::custom)?;
|
||||
if nanosecond == 0 {
|
||||
None
|
||||
} else {
|
||||
Some(nanosecond)
|
||||
}
|
||||
},
|
||||
}),
|
||||
offset: Some(toml_edit::Offset::Z),
|
||||
};
|
||||
@@ -1753,8 +1761,10 @@ where
|
||||
let time = if let Some(time) = datetime.time {
|
||||
let hour = i8::try_from(time.hour).map_err(serde::de::Error::custom)?;
|
||||
let minute = i8::try_from(time.minute).map_err(serde::de::Error::custom)?;
|
||||
let second = i8::try_from(time.second).map_err(serde::de::Error::custom)?;
|
||||
let nanosecond = i32::try_from(time.nanosecond).map_err(serde::de::Error::custom)?;
|
||||
let second =
|
||||
i8::try_from(time.second.unwrap_or_default()).map_err(serde::de::Error::custom)?;
|
||||
let nanosecond =
|
||||
i32::try_from(time.nanosecond.unwrap_or_default()).map_err(serde::de::Error::custom)?;
|
||||
Time::new(hour, minute, second, nanosecond).map_err(serde::de::Error::custom)?
|
||||
} else {
|
||||
Time::midnight()
|
||||
|
||||
Reference in New Issue
Block a user