blob: 01c4cbe175697f1654641a26c9ac75778f0e84da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
project('rust proc-macro', 'rust')
if build_machine.system() != 'linux'
error('MESON_SKIP_TEST, this test only works on Linux. Patches welcome.')
endif
pm = shared_library(
'proc_macro_examples',
'proc.rs',
rust_crate_type : 'proc-macro',
)
main = executable(
'main',
'use.rs',
link_with : pm
)
test('main_test', main)
|