Initial commit: project setup

This commit is contained in:
Jack Yu 2021-04-03 23:32:34 -04:00
commit 0cebbf9d5d
5 changed files with 38 additions and 0 deletions

12
src/bin/test_simple.rs Normal file
View file

@ -0,0 +1,12 @@
use rustmp::rmp_parallel_for;
fn main() {
#[rmp_parallel_for]
fn inner() {
for i in 1..10 {
println!("Hello from {}!", i);
}
}
inner();
}

7
src/lib.rs Normal file
View file

@ -0,0 +1,7 @@
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn rmp_parallel_for(args: TokenStream, func: TokenStream) -> TokenStream {
func
}