mirror of
https://github.com/fluencelabs/marine.git
synced 2025-06-17 17:01:30 +00:00
Move to the new sdk (#8)
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
|
||||
use super::IType;
|
||||
use fluence_sdk_wit::ParsedType;
|
||||
use fluence_sdk_wit::WasmType;
|
||||
|
||||
pub(crate) fn ptype_to_itype(pty: &ParsedType) -> IType {
|
||||
match pty {
|
||||
@ -35,3 +36,12 @@ pub(crate) fn ptype_to_itype(pty: &ParsedType) -> IType {
|
||||
ParsedType::Record(_) => unimplemented!(),
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn wtype_to_itype(pty: &WasmType) -> IType {
|
||||
match pty {
|
||||
WasmType::I32 => IType::I32,
|
||||
WasmType::I64 => IType::I64,
|
||||
WasmType::F32 => IType::F32,
|
||||
WasmType::F64 => IType::F64,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user