
Starting with Rust 1.83 this benign warning is show when compiling the pest dependency: ``` warning: elided lifetime has a name --> pest/src/iterators/pairs.rs:330:70 | 89 | impl<'i, R: RuleType> Pairs<'i, R> { | -- lifetime `'i` declared here ... 330 | ) -> Filter<FlatPairs<'i, R>, impl FnMut(&Pair<'i, R>) -> bool + '_> { | ^^ this elided lifetime gets resolved as `'i` | = note: `#[warn(elided_named_lifetimes)]` on by default ``` Meson, at least as of version 1.7.0, unfortunately does not suppress warnings originating in dependencies. Upstream has resolved the warning in 2.8.0, so update to that. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34368>
31 lines
717 B
Meson
31 lines
717 B
Meson
project(
|
|
'pest_generator',
|
|
'rust',
|
|
version : '2.8.0',
|
|
license :'MIT OR Apache-2.0',
|
|
)
|
|
|
|
pest = subproject('pest').get_variable('lib')
|
|
pest_meta = subproject('pest_meta').get_variable('lib')
|
|
quote = subproject('quote').get_variable('lib')
|
|
pm2 = subproject('proc-macro2').get_variable('lib')
|
|
syn = subproject('syn').get_variable('lib')
|
|
|
|
rust_args = [
|
|
'--cfg', 'feature="std"',
|
|
]
|
|
|
|
lib = static_library(
|
|
'pest_generator',
|
|
'src/lib.rs',
|
|
rust_args : rust_args,
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
|
link_with : [pest, pest_meta, pm2, quote, syn],
|
|
rust_abi : 'rust',
|
|
native : true,
|
|
)
|
|
|
|
dep_pest_generator = declare_dependency(
|
|
link_with : [lib, pest, pest_meta, quote, syn],
|
|
)
|