Debian Codegraph @

test cases/rust/31 both machines/meson.build

raw
1 project(
2 'testproj',
3 'rust',
4 version : '0.1',
5 meson_version : '>= 1.9.0',
6 default_options : ['rust_std=2021'],
7 )
8
9 lib_host = static_library(
10 'lib',
11 'lib.rs',
12 rust_abi: 'rust'
13 )
14
15 lib_build = static_library(
16 'lib+build',
17 'lib.rs',
18 rust_abi: 'rust',
19 native: true,
20 )
21
22 exe_host = executable(
23 'test-host',
24 'test.rs',
25 link_with: lib_host,
26 )
27
28 exe_build = executable(
29 'test-build',
30 'test.rs',
31 link_with: lib_build,
32 native: true,
33 )
34
35 test('host', exe_host)
36 test('build', exe_build)