Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

how to export a macro in rust

#[export_macro]
macro_rules! foo {
	() => {};
}

// You can use it like so:
use my_crate::foo;
// Notice that the macro is exported at the root
 
PREVIOUS NEXT
Tagged: #export #macro #rust
ADD COMMENT
Topic
Name
7+7 =