subprojects/packagefiles/pest-2-rs/meson.build
raw| 1 | project( |
| 2 | 'pest', |
| 3 | 'rust', |
| 4 | version : '2.8.0', |
| 5 | license : 'MIT OR Apache-2.0', |
| 6 | meson_version : '>= 1.7.0', |
| 7 | ) |
| 8 | |
| 9 | ucd = subproject('ucd-trie-0.1-rs').get_variable('lib') |
| 10 | |
| 11 | lib = static_library( |
| 12 | 'pest', |
| 13 | 'src/lib.rs', |
| 14 | override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], |
| 15 | link_with : [ucd], |
| 16 | rust_abi : 'rust', |
| 17 | native : true, |
| 18 | ) |
| 19 | |
| 20 | dep_pest = declare_dependency( |
| 21 | link_with : [lib, ucd], |
| 22 | ) |