rust: update crates
Until a new version of bitfield-struct is released, skip the ones that introduce a new dependency on syn 3. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini committed
Aug 21, 2026 at 08:35 UTC
f510bb417d84eedc6849501d4a5dffb888f23d4d
10 files changed
+70
-67
Cargo.lock
+38
-22
@@ -10,9 +10,9 @@ checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
10
11
[[package]]
12
name = "attrs"
13
-version = "0.2.9"
13
+version = "0.2.10"
14
source = "registry+https://github.com/rust-lang/crates.io-index"
15
-checksum = "2a207d40f43de65285f3de0509bb6cb16bc46098864fce957122bbacce327e5f"
15
+checksum = "60e397c905850173fdc02285fe7f94f1b0c3ff55ff6e103efbe98074d80601c4"
16
dependencies = [
17
"proc-macro2",
18
"syn",
@@ -46,9 +46,9 @@ dependencies = [
46
47
[[package]]
48
name = "cfg-expr"
49
-version = "0.20.3"
49
+version = "0.20.8"
50
source = "registry+https://github.com/rust-lang/crates.io-index"
51
-checksum = "1a2c5f3bf25ec225351aa1c8e230d04d880d3bd89dea133537dafad4ae291e5c"
51
+checksum = "fb693542bcafa528e198be0ebd9d3632ca5b7c93dbe7237460e199910835997c"
52
dependencies = [
53
"smallvec",
54
"target-lexicon",
@@ -93,11 +93,12 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
93
94
[[package]]
95
name = "foreign"
96
-version = "0.3.1"
96
+version = "0.4.0"
97
source = "registry+https://github.com/rust-lang/crates.io-index"
98
-checksum = "17ca1b5be8c9d320daf386f1809c7acc0cb09accbae795c2001953fa50585846"
98
+checksum = "2292704c239c26962ac5c32d53057c442ca5a2bf017fca5c95c342271058e4c2"
99
dependencies = [
100
"libc",
101
+ "rustc_version",
102
]
103
104
[[package]]
@@ -175,9 +176,9 @@ dependencies = [
176
177
[[package]]
178
name = "libc"
178
-version = "0.2.162"
179
+version = "0.2.189"
180
source = "registry+https://github.com/rust-lang/crates.io-index"
180
-checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
181
+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
182
183
[[package]]
184
name = "migration"
@@ -202,9 +203,9 @@ dependencies = [
203
204
[[package]]
205
name = "pkg-config"
205
-version = "0.3.32"
206
+version = "0.3.34"
207
source = "registry+https://github.com/rust-lang/crates.io-index"
207
-checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
208
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
209
210
[[package]]
211
name = "pl011"
@@ -272,13 +273,28 @@ dependencies = [
273
274
[[package]]
275
name = "quote"
275
-version = "1.0.36"
276
+version = "1.0.47"
277
source = "registry+https://github.com/rust-lang/crates.io-index"
277
-checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
278
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
279
dependencies = [
280
"proc-macro2",
281
]
282
283
+[[package]]
284
+name = "rustc_version"
285
+version = "0.4.1"
286
+source = "registry+https://github.com/rust-lang/crates.io-index"
287
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
288
+dependencies = [
289
+ "semver",
290
+]
291
+
292
+[[package]]
293
+name = "semver"
294
+version = "1.0.28"
295
+source = "registry+https://github.com/rust-lang/crates.io-index"
296
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
297
+
298
[[package]]
299
name = "serde_core"
300
version = "1.0.228"
@@ -366,9 +382,9 @@ dependencies = [
382
383
[[package]]
384
name = "target-lexicon"
369
-version = "0.13.2"
385
+version = "0.13.5"
386
source = "registry+https://github.com/rust-lang/crates.io-index"
371
-checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
387
+checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
388
389
[[package]]
390
name = "tests"
@@ -386,9 +402,9 @@ dependencies = [
402
403
[[package]]
404
name = "toml"
389
-version = "1.1.3+spec-1.1.0"
405
+version = "1.1.4+spec-1.1.0"
406
source = "registry+https://github.com/rust-lang/crates.io-index"
391
-checksum = "53c96ecdfa941c8fc4fcaed14f99ada8ebed502eef533015095a07e3301d4c3c"
407
+checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5"
408
dependencies = [
409
"indexmap",
410
"serde_core",
@@ -410,9 +426,9 @@ dependencies = [
426
427
[[package]]
428
name = "toml_parser"
413
-version = "1.1.2+spec-1.1.0"
429
+version = "1.1.3+spec-1.1.0"
430
source = "registry+https://github.com/rust-lang/crates.io-index"
415
-checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
431
+checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
432
dependencies = [
433
"winnow",
434
]
@@ -433,9 +449,9 @@ dependencies = [
449
450
[[package]]
451
name = "unicode-ident"
436
-version = "1.0.12"
452
+version = "1.0.24"
453
source = "registry+https://github.com/rust-lang/crates.io-index"
438
-checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
454
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
455
456
[[package]]
457
name = "util"
@@ -458,9 +474,9 @@ dependencies = [
474
475
[[package]]
476
name = "version-compare"
461
-version = "0.2.0"
477
+version = "0.2.1"
478
source = "registry+https://github.com/rust-lang/crates.io-index"
463
-checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"
479
+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"
480
481
[[package]]
482
name = "winnow"
Cargo.toml
+1
-1
@@ -17,7 +17,7 @@ authors = ["The QEMU Project Developers <qemu-devel@nongnu.org>"]
17
18
[workspace.dependencies]
19
anyhow = "~1.0"
20
-foreign = "~0.3.1"
20
+foreign = "~0.4.0"
21
libc = "0.2.162"
22
glib-sys = { version = "0.21.2", features = ["v2_66"] }
23
subprojects/attrs-0.2-rs.wrap
+5
-4
@@ -1,6 +1,7 @@
1
[wrap-file]
2
-directory = attrs-0.2.9
3
-source_url = https://crates.io/api/v1/crates/attrs/0.2.9/download
4
-source_filename = attrs-0.2.9.tar.gz
5
-source_hash = 2a207d40f43de65285f3de0509bb6cb16bc46098864fce957122bbacce327e5f
2
+directory = attrs-0.2.10
3
+source_url = https://crates.io/api/v1/crates/attrs/0.2.10/download
4
+source_filename = attrs-0.2.10.tar.gz
5
+source_hash = 60e397c905850173fdc02285fe7f94f1b0c3ff55ff6e103efbe98074d80601c4
6
method = cargo
7
+
subprojects/foreign-0.3-rs.wrap
deleted
-6
@@ -1,6 +0,0 @@
1
-[wrap-file]
2
-directory = foreign-0.3.1
3
-source_url = https://crates.io/api/v1/crates/foreign/0.3.1/download
4
-source_filename = foreign-0.3.1.tar.gz
5
-source_hash = 17ca1b5be8c9d320daf386f1809c7acc0cb09accbae795c2001953fa50585846
6
-method = cargo
subprojects/foreign-0.4-rs.wrap
new
+7
@@ -0,0 +1,7 @@
1
+[wrap-file]
2
+directory = foreign-0.4.0
3
+source_url = https://crates.io/api/v1/crates/foreign/0.4.0/download
4
+source_filename = foreign-0.4.0.tar.gz
5
+source_hash = 2292704c239c26962ac5c32d53057c442ca5a2bf017fca5c95c342271058e4c2
6
+method = cargo
7
+
subprojects/libc-0.2-rs.wrap
+4
-6
@@ -1,10 +1,8 @@
1
[wrap-file]
2
-directory = libc-0.2.162
3
-source_url = https://crates.io/api/v1/crates/libc/0.2.162/download
4
-source_filename = libc-0.2.162.tar.gz
5
-source_hash = 18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398
2
+directory = libc-0.2.189
3
+source_url = https://crates.io/api/v1/crates/libc/0.2.189/download
4
+source_filename = libc-0.2.189.tar.gz
5
+source_hash = 3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2
6
method = cargo
7
patch_directory = libc-0.2-rs
8
9
-# bump this version number on every change to meson.build or the patches:
10
-# v1
subprojects/packagefiles/foreign-0.4-rs/meson/meson.build
new
+3
@@ -0,0 +1,3 @@
1
+if rustc.version().version_compare('>=1.78.0')
2
+ extra_args += [ '--cfg', 'has_diagnostic_namespace' ]
3
+endif
subprojects/packagefiles/libc-0.2-rs/meson/meson.build
+4
-16
@@ -1,16 +1,4 @@
1
-extra_args += [
2
- '--cfg', 'freebsd11',
3
- '--cfg', 'libc_priv_mod_use',
4
- '--cfg', 'libc_union',
5
- '--cfg', 'libc_const_size_of',
6
- '--cfg', 'libc_align',
7
- '--cfg', 'libc_int128',
8
- '--cfg', 'libc_core_cvoid',
9
- '--cfg', 'libc_packedN',
10
- '--cfg', 'libc_cfg_target_vendor',
11
- '--cfg', 'libc_non_exhaustive',
12
- '--cfg', 'libc_long_array',
13
- '--cfg', 'libc_ptr_addr_of',
14
- '--cfg', 'libc_underscore_const_names',
15
- '--cfg', 'libc_const_extern_fn',
16
-]
1
+extra_args += ['--cfg', 'freebsd12']
2
+
3
+# TODO: linux_time_bits64, file_offset_bits64, gnu_time_bits64 are still unstable for glibc
4
+# as of libc 0.2.189
subprojects/quote-1-rs.wrap
+4
-6
@@ -1,9 +1,7 @@
1
[wrap-file]
2
-directory = quote-1.0.36
3
-source_url = https://crates.io/api/v1/crates/quote/1.0.36/download
4
-source_filename = quote-1.0.36.0.tar.gz
5
-source_hash = 0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7
2
+directory = quote-1.0.47
3
+source_url = https://crates.io/api/v1/crates/quote/1.0.47/download
4
+source_filename = quote-1.0.47.tar.gz
5
+source_hash = 1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001
6
method = cargo
7
8
-# bump this version number on every change to meson.build or the patches:
9
-# v2
subprojects/unicode-ident-1-rs.wrap
+4
-6
@@ -1,9 +1,7 @@
1
[wrap-file]
2
-directory = unicode-ident-1.0.12
3
-source_url = https://crates.io/api/v1/crates/unicode-ident/1.0.12/download
4
-source_filename = unicode-ident-1.0.12.tar.gz
5
-source_hash = 3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b
2
+directory = unicode-ident-1.0.24
3
+source_url = https://crates.io/api/v1/crates/unicode-ident/1.0.24/download
4
+source_filename = unicode-ident-1.0.24.tar.gz
5
+source_hash = e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75
6
method = cargo
7
8
-# bump this version number on every change to meson.build or the patches:
9
-# v2