mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
rust: hide warnings for subprojects
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>
This commit is contained in:
parent
559a779c6a
commit
d2c12785be
23 changed files with 44 additions and 20 deletions
|
@ -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: [],
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"',
|
||||
|
|
|
@ -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"',
|
||||
],
|
||||
|
|
|
@ -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"',
|
||||
],
|
||||
|
|
|
@ -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"',
|
||||
|
|
|
@ -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"'
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -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"',
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue