make wiggle-generate ordinary lib, and wiggle the proc-macro lib

this allows us to reuse the code in wiggle-generate elsewhere, because
a proc-macro=true lib can only export a #[proc_macro] and not ordinary
functions.

In lucet, I will depend on wiggle-generate to define a proc macro that
glues wiggle to the specifics of the runtime.
This commit is contained in:
Pat Hickey
2020-02-28 11:43:43 -08:00
parent 0fe3f11194
commit bb6995ceaf
13 changed files with 32 additions and 30 deletions

View File

@@ -4,7 +4,7 @@ use wiggle_test::{impl_errno, HostMemory, MemArea, WasiCtx};
const FD_VAL: u32 = 123;
wiggle_generate::from_witx!({
wiggle::from_witx!({
witx: ["tests/handles.witx"],
ctx: WasiCtx,
});