]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: hide warnings for subprojects
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Dec 2024 12:10:03 +0000 (13:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jan 2025 22:34:44 +0000 (23:34 +0100)
This matches cargo's own usage of "--cap-lints allow" when building
dependencies.  The dummy changes to the .wrap files help Meson notice
that the subproject is out of date.

Also remove an unnecessary subprojects/unicode-ident-1-rs/meson.build file.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
23 files changed:
subprojects/arbitrary-int-1-rs.wrap
subprojects/bilge-0.2-rs.wrap
subprojects/bilge-impl-0.2-rs.wrap
subprojects/either-1-rs.wrap
subprojects/itertools-0.11-rs.wrap
subprojects/packagefiles/arbitrary-int-1-rs/meson.build
subprojects/packagefiles/bilge-0.2-rs/meson.build
subprojects/packagefiles/bilge-impl-0.2-rs/meson.build
subprojects/packagefiles/either-1-rs/meson.build
subprojects/packagefiles/itertools-0.11-rs/meson.build
subprojects/packagefiles/proc-macro-error-1-rs/meson.build
subprojects/packagefiles/proc-macro-error-attr-1-rs/meson.build
subprojects/packagefiles/proc-macro2-1-rs/meson.build
subprojects/packagefiles/quote-1-rs/meson.build
subprojects/packagefiles/syn-2-rs/meson.build
subprojects/packagefiles/unicode-ident-1-rs/meson.build
subprojects/proc-macro-error-1-rs.wrap
subprojects/proc-macro-error-attr-1-rs.wrap
subprojects/proc-macro2-1-rs.wrap
subprojects/quote-1-rs.wrap
subprojects/syn-2-rs.wrap
subprojects/unicode-ident-1-rs.wrap
subprojects/unicode-ident-1-rs/meson.build [deleted file]

index e580538a8776001147bfc5c5c73df2bfccac6347..a1838b20b0f0d407c4b1cc449ad0e39fbeea6804 100644 (file)
@@ -5,3 +5,6 @@ source_filename = arbitrary-int-1.2.7.tar.gz
 source_hash = c84fc003e338a6f69fbd4f7fe9f92b535ff13e9af8997f3b14b6ddff8b1df46d
 #method = cargo
 patch_directory = arbitrary-int-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 7a4339d29896922c392e2e1952e02a1ee82b1874..900bb1497b993d697c9626637a489e9ca18a1b7a 100644 (file)
@@ -5,3 +5,6 @@ source_filename = bilge-0.2.0.tar.gz
 source_hash = dc707ed8ebf81de5cd6c7f48f54b4c8621760926cdf35a57000747c512e67b57
 #method = cargo
 patch_directory = bilge-0.2-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index b24c34a9043bebd4055e8296e9ed1db4cf560ada..d14c3dc769be8a8cc5fbf4d086a93fc9d961ed32 100644 (file)
@@ -6,3 +6,6 @@ source_hash = feb11e002038ad243af39c2068c8a72bcf147acf05025dcdb916fcc000adb2d8
 #method = cargo
 patch_directory = bilge-impl-0.2-rs
 diff_files = bilge-impl-1.63.0.patch
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 6046712036c8db1b142d083ae6f8a2d58d6203ab..352e11cfee62bd2ac957cb3cfd3635491d76abd3 100644 (file)
@@ -5,3 +5,6 @@ source_filename = either-1.12.0.tar.gz
 source_hash = 3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b
 #method = cargo
 patch_directory = either-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 66b05252cd55ed3149b79b992a6d224e9789ba97..ee12d0053bced9841c7c26514f1eecf985e66d3d 100644 (file)
@@ -5,3 +5,6 @@ source_filename = itertools-0.11.0.tar.gz
 source_hash = b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57
 #method = cargo
 patch_directory = itertools-0.11-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index cff3f62ce74b379ae6911ec4e22d7b10583f123d..00733d1faabc6bfd92a663704a6f3b47c353b69a 100644 (file)
@@ -9,6 +9,7 @@ _arbitrary_int_rs = static_library(
   files('src/lib.rs'),
   gnu_symbol_visibility: 'hidden',
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
+  rust_args: ['--cap-lints', 'allow'],
   rust_abi: 'rust',
   dependencies: [],
 )
index e69bac91b40962d7ce661dc63dccdd1a5d66a756..ce13d0fe80fb5e28da01b9c0c28791efd53b554a 100644 (file)
@@ -17,6 +17,7 @@ lib = static_library(
   'src/lib.rs',
   override_options : ['rust_std=2021', 'build.rust_std=2021'],
   rust_abi : 'rust',
+  rust_args: ['--cap-lints', 'allow'],
   dependencies: [
     arbitrary_int_dep,
     bilge_impl_dep,
index f8f3486fc089d57a5b55f3d419af3305cef9ed23..42b03dcd53cd50f2e03a718dd0345d1c254f2e25 100644 (file)
@@ -25,6 +25,7 @@ _bilge_impl_rs = rust.proc_macro(
   files('src/lib.rs'),
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'use_fallback',
     '--cfg', 'feature="syn-error"',
     '--cfg', 'feature="proc-macro"',
index 608e64e31fc2f062ac3e12761265255a85cf9197..04c96cc5fb32f90fc1f0d3c537510259066e0155 100644 (file)
@@ -11,6 +11,7 @@ _either_rs = static_library(
   override_options: ['rust_std=2018', 'build.rust_std=2018'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'feature="use_std"',
     '--cfg', 'feature="use_alloc"',
   ],
index 30982a4ee76ec7902f67f025f77f9515afb0aa78..2a3fbe9ee5a7d0aef472e747d81fa097fbf3b8d8 100644 (file)
@@ -15,6 +15,7 @@ _itertools_rs = static_library(
   override_options: ['rust_std=2018', 'build.rust_std=2018'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'feature="use_std"',
     '--cfg', 'feature="use_alloc"',
   ],
index ae27a6968624e2b2e74424f328b591f90252737f..10c2741085c69d6a968deb4d96868339acd36ad9 100644 (file)
@@ -20,6 +20,7 @@ _proc_macro_error_rs = static_library(
   override_options: ['rust_std=2018', 'build.rust_std=2018'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'use_fallback',
     '--cfg', 'feature="syn-error"',
     '--cfg', 'feature="proc-macro"',
index 3281b264333638b8e3c75528c3cf87cb65731c83..c4c4c5e397c30327cb45775a2ad843741902eb81 100644 (file)
@@ -16,6 +16,7 @@ _proc_macro_error_attr_rs = rust.proc_macro(
   files('src/lib.rs'),
   override_options: ['rust_std=2018', 'build.rust_std=2018'],
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'use_fallback',
     '--cfg', 'feature="syn-error"',
     '--cfg', 'feature="proc-macro"'
index f9c8675ebad0a78207f6ab434e455615539a6f3c..5759df3ecc9b074f5be259b3f027a047dcd01ee6 100644 (file)
@@ -15,6 +15,7 @@ _proc_macro2_rs = static_library(
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'feature="proc-macro"',
     '--cfg', 'no_literal_byte_character',
     '--cfg', 'no_literal_c_string',
index 7f7792569b90748a032a76088140ecda86a83fc9..bf41fad99bb2d807df364a86141436d9dc2d04cd 100644 (file)
@@ -15,6 +15,7 @@ _quote_rs = static_library(
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'feature="proc-macro"',
   ],
   dependencies: [
index 2c62cf7e1b05b046daeb12c51f78698b92333e19..a0094174084ec1b848ed946abcf4d3bafc9a9415 100644 (file)
@@ -19,6 +19,7 @@ _syn_rs = static_library(
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
   rust_abi: 'rust',
   rust_args: [
+    '--cap-lints', 'allow',
     '--cfg', 'feature="full"',
     '--cfg', 'feature="derive"',
     '--cfg', 'feature="parsing"',
index 9d76ebbd1ad74b11c9c12be96c236cda2cdd8875..11a5dab97dfaddf499105fedc26405b53df2c7cc 100644 (file)
@@ -10,6 +10,7 @@ _unicode_ident_rs = static_library(
   gnu_symbol_visibility: 'hidden',
   override_options: ['rust_std=2021', 'build.rust_std=2021'],
   rust_abi: 'rust',
+  rust_args: ['--cap-lints', 'allow'],
   dependencies: [],
   native: true,
 )
index b7db03b06a019562b2ad77bb252d50b7e83c0b33..59f892f7825efd0d6d1c3102aa083ff3f2628218 100644 (file)
@@ -5,3 +5,6 @@ source_filename = proc-macro-error-1.0.4.tar.gz
 source_hash = da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c
 #method = cargo
 patch_directory = proc-macro-error-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index d13d8a239ac259132cd905bc512e9024b2f30fb8..5aeb224a103a90540e75e0b67de3f3c6e6aeed91 100644 (file)
@@ -5,3 +5,6 @@ source_filename = proc-macro-error-attr-1.0.4.tar.gz
 source_hash = a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869
 #method = cargo
 patch_directory = proc-macro-error-attr-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 7053e2c013c6d6be9efa5dd99cb43b5906a772d3..6c9369f0df3f3bf1a0d21dd12a0e8a4620f2cabd 100644 (file)
@@ -5,3 +5,6 @@ source_filename = proc-macro2-1.0.84.0.tar.gz
 source_hash = ec96c6a92621310b51366f1e28d05ef11489516e93be030060e5fc12024a49d6
 #method = cargo
 patch_directory = proc-macro2-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 6e7ea69049f83d51190cef867cec1adc202f77db..8b721dfa00bd0cae587f03960cf6c4d483eb0205 100644 (file)
@@ -5,3 +5,6 @@ source_filename = quote-1.0.36.0.tar.gz
 source_hash = 0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7
 #method = cargo
 patch_directory = quote-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 13ffdac3c3b1bbed2f568a2638c3dfe20dbc0748..d79cf750fb4927d198b240e297a2f5c00e55e36d 100644 (file)
@@ -5,3 +5,6 @@ source_filename = syn-2.0.66.0.tar.gz
 source_hash = c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5
 #method = cargo
 patch_directory = syn-2-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
index 4609f96ed970a64bf0f9d06b29bcc9985a907c3d..50988f612e262665635484c31fb5f8bf8ea54e1d 100644 (file)
@@ -5,3 +5,6 @@ source_filename = unicode-ident-1.0.12.tar.gz
 source_hash = 3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b
 #method = cargo
 patch_directory = unicode-ident-1-rs
+
+# bump this version number on every change to meson.build or the patches:
+# v2
diff --git a/subprojects/unicode-ident-1-rs/meson.build b/subprojects/unicode-ident-1-rs/meson.build
deleted file mode 100644 (file)
index 54f2376..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-project('unicode-ident-1-rs', 'rust',
-  version: '1.0.12',
-  license: '(MIT OR Apache-2.0) AND Unicode-DFS-2016',
-  default_options: [])
-
-_unicode_ident_rs = static_library(
-  'unicode_ident',
-  files('src/lib.rs'),
-  gnu_symbol_visibility: 'hidden',
-  override_options: ['rust_std=2021', 'build.rust_std=2021'],
-  rust_abi: 'rust',
-  dependencies: [],
-  native: true,
-)
-
-unicode_ident_dep = declare_dependency(
-  link_with: _unicode_ident_rs,
-)
-
-meson.override_dependency('unicode-ident-1-rs', unicode_ident_dep, native: true)