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