mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
meson: silence warnings in rust subprojects
Rust 1.91 as well as clippy show various benign warnings in our dependencies. Silence them since we can't really do much about them anyway and we want to enforce clippy complience via CI in the future. Matches cargo behavior, which also doesn't show warnings or clippy lints outside the workspace. Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38814>
This commit is contained in:
parent
17e597093d
commit
f53f35cb32
29 changed files with 30 additions and 30 deletions
|
|
@ -11,7 +11,7 @@ project(
|
|||
lib = static_library(
|
||||
'bitflags',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ project(
|
|||
lib = static_library(
|
||||
'cfg_if',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ project(
|
|||
lib = static_library(
|
||||
'equivalent',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2015', 'build.rust_std=2015'],
|
||||
override_options : ['rust_std=2015', 'build.rust_std=2015', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ endif
|
|||
lib = static_library(
|
||||
'libc_errno',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'],
|
||||
link_with: [libc] + os_deps,
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ lib = static_library(
|
|||
'hashbrown',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ lib = static_library(
|
|||
'indexmap',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
dependencies : [dep_equivalent, dep_hashbrown]
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ lib = static_library(
|
|||
'libc',
|
||||
'src/lib.rs',
|
||||
rust_abi : 'rust',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_args: libc_args,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ project(
|
|||
lib = static_library(
|
||||
'log',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ lib = static_library(
|
|||
'once_cell',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ rust = import('rust')
|
|||
lib = rust.proc_macro(
|
||||
'paste',
|
||||
files('src/lib.rs'),
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018']
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0']
|
||||
)
|
||||
|
||||
dep_paste = declare_dependency(
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ ucd = subproject('ucd-trie-0.1-rs').get_variable('lib')
|
|||
lib = static_library(
|
||||
'pest',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [ucd],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ rust = import('rust')
|
|||
lib = rust.proc_macro(
|
||||
'pest_derive',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [pest, pest_generator],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ lib = static_library(
|
|||
'pest_generator',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [pest, pest_meta, pm2, quote, syn],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ pest = subproject('pest-2-rs').get_variable('lib')
|
|||
lib = static_library(
|
||||
'pest_meta',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [once_cell, pest],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ lib = static_library(
|
|||
'proc_macro2',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : u_ind,
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ lib = static_library(
|
|||
'quote',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'],
|
||||
link_with : pm2,
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ rust = import('rust')
|
|||
lib = rust.proc_macro(
|
||||
'remain',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [syn, quote, proc_macro2]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ project(
|
|||
lib = static_library(
|
||||
'roxmltree',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ lib = static_library(
|
|||
'rustc_hash',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ endif
|
|||
lib = static_library(
|
||||
'rustix',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [errno, libc, bitflags] + os_deps,
|
||||
rust_abi : 'rust',
|
||||
rust_args: rustix_args,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ lib = static_library(
|
|||
'syn',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [u_ind, quote, pm2],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ thiserror_impl = subproject('thiserror-impl-2-rs').get_variable('lib')
|
|||
lib = static_library(
|
||||
'thiserror',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
link_with : [thiserror_impl]
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ rust = import('rust')
|
|||
lib = rust.proc_macro(
|
||||
'thiserror_impl',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [syn, quote, proc_macro2]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ project(
|
|||
lib = static_library(
|
||||
'ucd_trie',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ project(
|
|||
lib = static_library(
|
||||
'unicode_ident',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ project(
|
|||
lib = static_library(
|
||||
'windows_link',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi: 'rust',
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ windows_sys_args = [
|
|||
lib = static_library(
|
||||
'windows_sys',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with: [windows_link],
|
||||
rust_abi: 'rust',
|
||||
rust_args: windows_sys_args,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ zerocopy_derive = subproject('zerocopy-derive-0.8-rs').get_variable('lib')
|
|||
lib = static_library(
|
||||
'zerocopy',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
rust_abi : 'rust',
|
||||
rust_args: zerocopy_args,
|
||||
link_with : [zerocopy_derive]
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ rust = import('rust')
|
|||
lib = rust.proc_macro(
|
||||
'zerocopy_derive',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
||||
link_with : [syn, quote, proc_macro2]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue