subprojects/packagefiles/rustc-hash-2-rs/meson.build
raw| 1 | project( |
| 2 | 'rustc_hash', |
| 3 | 'rust', |
| 4 | version : '2.1.1', |
| 5 | license : 'MIT OR Apache-2.0', |
| 6 | meson_version : '>= 1.7.0', |
| 7 | ) |
| 8 | |
| 9 | rust_args = [ |
| 10 | '--cfg', 'feature="std"' |
| 11 | ] |
| 12 | |
| 13 | lib = static_library( |
| 14 | 'rustc_hash', |
| 15 | 'src/lib.rs', |
| 16 | rust_args : rust_args, |
| 17 | override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], |
| 18 | rust_abi : 'rust', |
| 19 | ) |
| 20 | |
| 21 | dep_rustc_hash = declare_dependency( |
| 22 | link_with : [lib], |
| 23 | ) |