Update wasm-tools crates (#5757)

* Update wasm-tools crates

Pulls in a new component binary format which should hopefully be the
last update for awhile.

* Update cargo vet configuration
This commit is contained in:
Alex Crichton
2023-02-09 20:14:53 -06:00
committed by GitHub
parent de68cc1726
commit 49613be393
6 changed files with 82 additions and 118 deletions

View File

@@ -132,7 +132,12 @@ impl Wasmtime {
);
Import::Interface { snake }
}
WorldItem::Type(_) => unreachable!(),
WorldItem::Type(ty) => {
gen.define_type(name, *ty);
let body = mem::take(&mut gen.src);
self.src.push_str(&body);
return;
}
};
self.imports.push(import);
@@ -150,12 +155,7 @@ impl Wasmtime {
self.exports.funcs.push(body);
(format!("wasmtime::component::Func"), getter)
}
WorldItem::Type(ty) => {
gen.define_type(name, *ty);
let body = mem::take(&mut gen.src);
self.src.push_str(&body);
return;
}
WorldItem::Type(_) => unreachable!(),
WorldItem::Interface(id) => {
gen.current_interface = Some(*id);
gen.types(*id);