| 1 |
project( |
| 2 |
'indexmap', |
| 3 |
'rust', |
| 4 |
version : '2.2.6', |
| 5 |
license : 'MIT OR Apache-2.0', |
| 6 |
meson_version : '>= 1.7.0', |
| 7 |
) |
| 8 |
|
| 9 |
dep_equivalent = subproject('equivalent-1-rs').get_variable('dep_equivalent') |
| 10 |
dep_hashbrown = subproject('hashbrown-0.14-rs').get_variable('dep_hashbrown') |
| 11 |
|
| 12 |
rust_args = [ |
| 13 |
'--cfg', 'feature="std"' |
| 14 |
] |
| 15 |
|
| 16 |
lib = static_library( |
| 17 |
'indexmap', |
| 18 |
'src/lib.rs', |
| 19 |
rust_args : rust_args, |
| 20 |
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'], |
| 21 |
rust_abi : 'rust', |
| 22 |
native : true, |
| 23 |
dependencies : [dep_equivalent, dep_hashbrown] |
| 24 |
) |
| 25 |
|
| 26 |
dep_indexmap = declare_dependency( |
| 27 |
link_with : [lib], |
| 28 |
) |