Initial reorg.

This is largely the same as #305, but updated for the current tree.
This commit is contained in:
Dan Gohman
2019-11-07 17:11:06 -08:00
parent 2c69546a24
commit 22641de629
351 changed files with 52 additions and 52 deletions

View File

@@ -0,0 +1,34 @@
extern crate proc_macro;
extern crate proc_macro2;
extern crate quote;
extern crate witx;
mod raw_types;
mod utils;
use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
#[proc_macro]
pub fn witx_host_types(args: TokenStream) -> TokenStream {
TokenStream::from(raw_types::gen(
TokenStream2::from(args),
raw_types::Mode::Host,
))
}
#[proc_macro]
pub fn witx_wasi_types(args: TokenStream) -> TokenStream {
TokenStream::from(raw_types::gen(
TokenStream2::from(args),
raw_types::Mode::Wasi,
))
}
#[proc_macro]
pub fn witx_wasi32_types(args: TokenStream) -> TokenStream {
TokenStream::from(raw_types::gen(
TokenStream2::from(args),
raw_types::Mode::Wasi32,
))
}