aboutsummaryrefslogtreecommitdiff
path: root/rust/trace/meson.build
blob: adca57e5507537e6868219d2e9ccf86be1f4250d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
rust = import('rust')

lib_rs = configure_file(
  input: 'src/lib.rs',
  output: 'lib.rs',
  configuration: {
    'MESON_BUILD_ROOT': meson.project_build_root(),
  })

_trace_rs = static_library(
  'trace',             # Library name,
  lib_rs,
  trace_rs_targets,         # List of generated `.rs` custom targets
  override_options: ['rust_std=2021', 'build.rust_std=2021'],
  dependencies: [libc_rs],
  rust_abi: 'rust',
)

trace_rs = declare_dependency(link_with: _trace_rs)