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

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/target
**/*.rs.bk

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "crates/WASI"]
path = crates/WASI
url = https://github.com/webassembly/wasi.git

11
Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "wig-new"
version = "0.1.0"
authors = ["Jakub Konka <jakub.konka@golem.network>"]
edition = "2018"
[dependencies]
generate = { path = "crates/generate" }
[workspace]
members = ["crates/generate"]

1
crates/WASI Submodule

Submodule crates/WASI added at 77629f3442

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,
// ))
}

2
src/lib.rs Normal file
View File

@@ -0,0 +1,2 @@
generate::from_witx!();