Set up machinery

This commit is contained in:
Jakub Konka
2020-01-17 14:54:05 +01:00
commit 6f6c6499c6
7 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[package]
name = "generate"
version = "0.1.0"
authors = ["Jakub Konka <jakub.konka@golem.network>"]
edition = "2018"
[lib]
proc-macro = true
[dependencies]
witx = { path = "../WASI/tools/witx" }
quote = "1.0"
proc-macro2 = "1.0"
heck = "0.3"

View File

@@ -0,0 +1,13 @@
extern crate proc_macro;
use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
#[proc_macro]
pub fn from_witx(args: TokenStream) -> TokenStream {
TokenStream::new()
// TokenStream::from(raw_types::gen(
// TokenStream2::from(args),
// raw_types::Mode::Host,
// ))
}