Files
third_party_mesa3d/subprojects/packagefiles/pest_derive/meson.build
LingMan 83bf45b0ce meson: Update pest subproject family
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>
2025-04-04 21:22:27 +00:00

23 lines
471 B
Meson

project(
'pest_derive',
'rust',
version : '2.8.0',
license :'MIT OR Apache-2.0',
)
pest = subproject('pest').get_variable('lib')
pest_generator = subproject('pest_generator').get_variable('lib')
rust = import('rust')
lib = rust.proc_macro(
'pest_derive',
'src/lib.rs',
override_options : ['rust_std=2021', 'build.rust_std=2021'],
link_with : [pest, pest_generator],
)
dep_pest_derive = declare_dependency(
link_with : [lib, pest, pest_generator],
)