1rust = import('rust') 2 3lib_rs = configure_file( 4 input: 'src/lib.rs', 5 output: 'lib.rs', 6 configuration: { 7 'MESON_BUILD_ROOT': meson.project_build_root(), 8 }) 9 10_trace_rs = static_library( 11 'trace', # Library name, 12 lib_rs, 13 trace_rs_targets, # List of generated `.rs` custom targets 14 override_options: ['rust_std=2021', 'build.rust_std=2021'], 15 dependencies: [libc_rs], 16 rust_abi: 'rust', 17) 18 19trace_rs = declare_dependency(link_with: _trace_rs) 20