mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
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>
27 lines
598 B
Meson
27 lines
598 B
Meson
project(
|
|
'indexmap',
|
|
'rust',
|
|
version : '2.2.6',
|
|
license : 'MIT OR Apache-2.0',
|
|
)
|
|
|
|
dep_equivalent = subproject('equivalent-1-rs').get_variable('dep_equivalent')
|
|
dep_hashbrown = subproject('hashbrown-0.14-rs').get_variable('dep_hashbrown')
|
|
|
|
rust_args = [
|
|
'--cfg', 'feature="std"'
|
|
]
|
|
|
|
lib = static_library(
|
|
'indexmap',
|
|
'src/lib.rs',
|
|
rust_args : rust_args,
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
|
rust_abi : 'rust',
|
|
native : true,
|
|
dependencies : [dep_equivalent, dep_hashbrown]
|
|
)
|
|
|
|
dep_indexmap = declare_dependency(
|
|
link_with : [lib],
|
|
)
|