Add helper types and half-ish of the wasi signatures

This commit is contained in:
Lachlan Sneff
2019-03-28 17:00:10 -07:00
parent 2982e6e383
commit c45de2207e
5 changed files with 243 additions and 47 deletions

View File

@ -77,6 +77,19 @@ where
{
const TYPE: Type;
}
unsafe impl WasmExternType for i8 {
const TYPE: Type = Type::I32;
}
unsafe impl WasmExternType for u8 {
const TYPE: Type = Type::I32;
}
unsafe impl WasmExternType for i16 {
const TYPE: Type = Type::I32;
}
unsafe impl WasmExternType for u16 {
const TYPE: Type = Type::I32;
}
unsafe impl WasmExternType for i32 {
const TYPE: Type = Type::I32;
}