Fix incorrect hardcoded path to witx spec

This commit is contained in:
Jakub Konka
2020-01-17 14:59:51 +01:00
parent 6f6c6499c6
commit 64f0793388

View File

@@ -3,8 +3,11 @@ extern crate proc_macro;
use proc_macro::TokenStream; use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2; use proc_macro2::TokenStream as TokenStream2;
const WITX_PATH: &'static str = "crates/WASI/phases/snapshot/witx/wasi_snapshot_preview1.witx";
#[proc_macro] #[proc_macro]
pub fn from_witx(args: TokenStream) -> TokenStream { pub fn from_witx(args: TokenStream) -> TokenStream {
let doc = witx::load(&[WITX_PATH]).unwrap();
TokenStream::new() TokenStream::new()
// TokenStream::from(raw_types::gen( // TokenStream::from(raw_types::gen(
// TokenStream2::from(args), // TokenStream2::from(args),