2024-06-24 13:30:36 +02:00
|
|
|
project(
|
|
|
|
|
'indexmap',
|
|
|
|
|
'rust',
|
|
|
|
|
version : '2.2.6',
|
2025-06-11 10:03:16 -07:00
|
|
|
license : 'MIT OR Apache-2.0',
|
2025-12-04 17:15:36 +01:00
|
|
|
meson_version : '>= 1.7.0',
|
2024-06-24 13:30:36 +02:00
|
|
|
)
|
|
|
|
|
|
2025-07-22 08:43:52 +02:00
|
|
|
dep_equivalent = subproject('equivalent-1-rs').get_variable('dep_equivalent')
|
|
|
|
|
dep_hashbrown = subproject('hashbrown-0.14-rs').get_variable('dep_hashbrown')
|
2024-06-24 13:30:36 +02:00
|
|
|
|
|
|
|
|
rust_args = [
|
|
|
|
|
'--cfg', 'feature="std"'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
lib = static_library(
|
|
|
|
|
'indexmap',
|
|
|
|
|
'src/lib.rs',
|
|
|
|
|
rust_args : rust_args,
|
2025-12-04 15:37:18 +01:00
|
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
|
2024-06-24 13:30:36 +02:00
|
|
|
rust_abi : 'rust',
|
|
|
|
|
native : true,
|
|
|
|
|
dependencies : [dep_equivalent, dep_hashbrown]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
dep_indexmap = declare_dependency(
|
|
|
|
|
link_with : [lib],
|
|
|
|
|
)
|