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:
LingMan 2025-12-04 15:37:18 +01:00 committed by Marge Bot
parent 17e597093d
commit f53f35cb32
29 changed files with 30 additions and 30 deletions

View file

@ -11,7 +11,7 @@ project(
lib = static_library( lib = static_library(
'bitflags', 'bitflags',
'src/lib.rs', '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_abi : 'rust',
) )

View file

@ -11,7 +11,7 @@ project(
lib = static_library( lib = static_library(
'cfg_if', 'cfg_if',
'src/lib.rs', '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', rust_abi : 'rust',
) )

View file

@ -8,7 +8,7 @@ project(
lib = static_library( lib = static_library(
'equivalent', 'equivalent',
'src/lib.rs', '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', rust_abi : 'rust',
native : true, native : true,
) )

View file

@ -17,7 +17,7 @@ endif
lib = static_library( lib = static_library(
'libc_errno', 'libc_errno',
'src/lib.rs', '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, link_with: [libc] + os_deps,
rust_abi : 'rust', rust_abi : 'rust',
) )

View file

@ -13,7 +13,7 @@ lib = static_library(
'hashbrown', 'hashbrown',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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', rust_abi : 'rust',
native : true, native : true,
) )

View file

@ -16,7 +16,7 @@ lib = static_library(
'indexmap', 'indexmap',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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', rust_abi : 'rust',
native : true, native : true,
dependencies : [dep_equivalent, dep_hashbrown] dependencies : [dep_equivalent, dep_hashbrown]

View file

@ -34,7 +34,7 @@ lib = static_library(
'libc', 'libc',
'src/lib.rs', 'src/lib.rs',
rust_abi : 'rust', 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, rust_args: libc_args,
) )

View file

@ -11,7 +11,7 @@ project(
lib = static_library( lib = static_library(
'log', 'log',
'src/lib.rs', '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_abi : 'rust',
) )

View file

@ -13,7 +13,7 @@ lib = static_library(
'once_cell', 'once_cell',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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', rust_abi : 'rust',
native : true, native : true,
) )

View file

@ -10,7 +10,7 @@ rust = import('rust')
lib = rust.proc_macro( lib = rust.proc_macro(
'paste', 'paste',
files('src/lib.rs'), 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( dep_paste = declare_dependency(

View file

@ -10,7 +10,7 @@ ucd = subproject('ucd-trie-0.1-rs').get_variable('lib')
lib = static_library( lib = static_library(
'pest', 'pest',
'src/lib.rs', '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], link_with : [ucd],
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -13,7 +13,7 @@ rust = import('rust')
lib = rust.proc_macro( lib = rust.proc_macro(
'pest_derive', 'pest_derive',
'src/lib.rs', '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], link_with : [pest, pest_generator],
) )

View file

@ -19,7 +19,7 @@ lib = static_library(
'pest_generator', 'pest_generator',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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], link_with : [pest, pest_meta, pm2, quote, syn],
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -11,7 +11,7 @@ pest = subproject('pest-2-rs').get_variable('lib')
lib = static_library( lib = static_library(
'pest_meta', 'pest_meta',
'src/lib.rs', '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], link_with : [once_cell, pest],
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -57,7 +57,7 @@ lib = static_library(
'proc_macro2', 'proc_macro2',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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, link_with : u_ind,
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -25,7 +25,7 @@ lib = static_library(
'quote', 'quote',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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, link_with : pm2,
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -16,7 +16,7 @@ rust = import('rust')
lib = rust.proc_macro( lib = rust.proc_macro(
'remain', 'remain',
'src/lib.rs', '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] link_with : [syn, quote, proc_macro2]
) )

View file

@ -8,7 +8,7 @@ project(
lib = static_library( lib = static_library(
'roxmltree', 'roxmltree',
'src/lib.rs', '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_abi : 'rust',
native : true, native : true,
) )

View file

@ -13,7 +13,7 @@ lib = static_library(
'rustc_hash', 'rustc_hash',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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', rust_abi : 'rust',
) )

View file

@ -53,7 +53,7 @@ endif
lib = static_library( lib = static_library(
'rustix', 'rustix',
'src/lib.rs', '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, link_with : [errno, libc, bitflags] + os_deps,
rust_abi : 'rust', rust_abi : 'rust',
rust_args: rustix_args, rust_args: rustix_args,

View file

@ -41,7 +41,7 @@ lib = static_library(
'syn', 'syn',
'src/lib.rs', 'src/lib.rs',
rust_args : rust_args, 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], link_with : [u_ind, quote, pm2],
rust_abi : 'rust', rust_abi : 'rust',
native : true, native : true,

View file

@ -16,7 +16,7 @@ thiserror_impl = subproject('thiserror-impl-2-rs').get_variable('lib')
lib = static_library( lib = static_library(
'thiserror', 'thiserror',
'src/lib.rs', '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_abi : 'rust',
link_with : [thiserror_impl] link_with : [thiserror_impl]
) )

View file

@ -16,7 +16,7 @@ rust = import('rust')
lib = rust.proc_macro( lib = rust.proc_macro(
'thiserror_impl', 'thiserror_impl',
'src/lib.rs', '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] link_with : [syn, quote, proc_macro2]
) )

View file

@ -8,7 +8,7 @@ project(
lib = static_library( lib = static_library(
'ucd_trie', 'ucd_trie',
'src/lib.rs', '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_abi : 'rust',
native : true, native : true,
) )

View file

@ -8,7 +8,7 @@ project(
lib = static_library( lib = static_library(
'unicode_ident', 'unicode_ident',
'src/lib.rs', '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', rust_abi : 'rust',
native : true, native : true,
) )

View file

@ -11,7 +11,7 @@ project(
lib = static_library( lib = static_library(
'windows_link', 'windows_link',
'src/lib.rs', '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_abi: 'rust',
) )

View file

@ -23,7 +23,7 @@ windows_sys_args = [
lib = static_library( lib = static_library(
'windows_sys', 'windows_sys',
'src/lib.rs', '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], link_with: [windows_link],
rust_abi: 'rust', rust_abi: 'rust',
rust_args: windows_sys_args, rust_args: windows_sys_args,

View file

@ -14,7 +14,7 @@ zerocopy_derive = subproject('zerocopy-derive-0.8-rs').get_variable('lib')
lib = static_library( lib = static_library(
'zerocopy', 'zerocopy',
'src/lib.rs', '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_abi : 'rust',
rust_args: zerocopy_args, rust_args: zerocopy_args,
link_with : [zerocopy_derive] link_with : [zerocopy_derive]

View file

@ -16,7 +16,7 @@ rust = import('rust')
lib = rust.proc_macro( lib = rust.proc_macro(
'zerocopy_derive', 'zerocopy_derive',
'src/lib.rs', '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] link_with : [syn, quote, proc_macro2]
) )