1project('itertools-0.11-rs', 'rust', 2 version: '0.11.0', 3 license: 'MIT OR Apache-2.0', 4 default_options: []) 5 6subproject('either-1-rs', required: true) 7 8either_dep = dependency('either-1-rs', native: true) 9 10_itertools_rs = static_library( 11 'itertools', 12 files('src/lib.rs'), 13 gnu_symbol_visibility: 'hidden', 14 override_options: ['rust_std=2018', 'build.rust_std=2018'], 15 rust_abi: 'rust', 16 rust_args: [ 17 '--cfg', 'feature="use_std"', 18 '--cfg', 'feature="use_alloc"', 19 ], 20 dependencies: [ 21 either_dep, 22 ], 23 native: true, 24) 25 26itertools_dep = declare_dependency( 27 link_with: _itertools_rs, 28) 29 30meson.override_dependency('itertools-0.11-rs', itertools_dep, native: true) 31