The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

398 B

Rust proc-macro crates

Rust has these handy things called proc-macro crates, which are a bit like a compiler plugin. We can now support them, simply build a shared_library with the rust_crate_type set to proc-macro.

proc = shared_library(
  'proc',
  'proc.rs',
  rust_crate_type : 'proc-macro',
  install : false,
)

user = executable('user, 'user.rs', link_with : proc)