Update Rust crate similar to v3 (#24598)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
renovate[bot]
2026-04-13 08:01:53 +00:00
committed by GitHub
parent 8d0cdb32dd
commit 0b4603530e
6 changed files with 33 additions and 24 deletions
Generated
+26 -17
View File
@@ -540,7 +540,7 @@ dependencies = [
"terminfo",
"thiserror 2.0.18",
"which",
"windows-sys 0.60.2",
"windows-sys 0.61.0",
]
[[package]]
@@ -660,7 +660,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
dependencies = [
"lazy_static",
"windows-sys 0.52.0",
"windows-sys 0.59.0",
]
[[package]]
@@ -669,7 +669,7 @@ version = "3.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
@@ -1023,7 +1023,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
"windows-sys 0.60.2",
"windows-sys 0.61.0",
]
[[package]]
@@ -1109,7 +1109,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
@@ -1659,7 +1659,7 @@ dependencies = [
"regex",
"ron",
"serde",
"similar",
"similar 2.7.0",
"tempfile",
]
@@ -1718,7 +1718,7 @@ checksum = "e04d7f318608d35d4b61ddd75cbdaee86b023ebe2bd5a66ee0915f0bf93095a9"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.52.0",
"windows-sys 0.59.0",
]
[[package]]
@@ -1772,7 +1772,7 @@ dependencies = [
"portable-atomic",
"portable-atomic-util",
"serde_core",
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
@@ -3030,7 +3030,7 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"similar",
"similar 3.1.0",
"supports-hyperlinks",
"tempfile",
"thiserror 2.0.18",
@@ -3072,7 +3072,7 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"similar",
"similar 3.1.0",
"strum",
"tempfile",
"toml 1.1.2+spec-1.1.0",
@@ -3190,7 +3190,7 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"similar",
"similar 3.1.0",
"smallvec",
"strum",
"strum_macros",
@@ -3337,7 +3337,7 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"similar",
"similar 3.1.0",
"smallvec",
"static_assertions",
"thiserror 2.0.18",
@@ -3619,7 +3619,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
@@ -3884,6 +3884,15 @@ version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
[[package]]
name = "similar"
version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04d93e861ede2e497b47833469b8ec9d5c07fa4c78ce7a00f6eb7dd8168b4b3f"
dependencies = [
"bstr",
]
[[package]]
name = "siphasher"
version = "1.0.1"
@@ -3910,7 +3919,7 @@ dependencies = [
"normalize-line-endings",
"os_pipe",
"serde_json",
"similar",
"similar 2.7.0",
"snapbox-macros",
"wait-timeout",
"windows-sys 0.60.2",
@@ -4024,10 +4033,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
"getrandom 0.3.4",
"getrandom 0.4.2",
"once_cell",
"rustix",
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
@@ -5191,7 +5200,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.0",
]
[[package]]
+1 -1
View File
@@ -170,7 +170,7 @@ serde_with = { version = "3.6.0", default-features = false, features = [
"macros",
] }
shellexpand = { version = "3.0.0" }
similar = { version = "2.4.0", features = ["inline"] }
similar = { version = "3.0.0", features = ["inline"] }
smallvec = { version = "1.13.2", features = ["union", "const_generics", "const_new"] }
snapbox = { version = "1.0.0", features = [
"diff",
@@ -50,10 +50,10 @@ help: Organize imports
-
6 | # Comment 3b
7 | import C
-
- import B # Comment 4
8 + import D
9 |
- import B # Comment 4
-
10 | # Comment 5
-
11 | # Comment 6
+1 -1
View File
@@ -279,7 +279,7 @@ enum DiffKind<'a> {
}
struct CodeDiff<'a> {
diff: TextDiff<'a, 'a, 'a, str>,
diff: TextDiff<'a, 'a, str>,
header: Option<(&'a str, &'a str)>,
missing_newline_hint: bool,
}
@@ -513,8 +513,8 @@ fn ensure_unchanged_ast(
if formatted_ast != unformatted_ast {
let diff = TextDiff::from_lines(
&format!("{unformatted_ast:#?}"),
&format!("{formatted_ast:#?}"),
format!("{unformatted_ast:#?}"),
format!("{formatted_ast:#?}"),
)
.unified_diff()
.header("Unformatted", "Formatted")
+1 -1
View File
@@ -37,7 +37,7 @@ salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "2f687a17ceea8ec7
"salsa_unstable",
"inventory",
] }
similar = { version = "2.5.0" }
similar = { version = "3.0.0" }
tracing = { version = "0.1.40" }
# Prevent this from interfering with workspaces