misc updates

This commit is contained in:
vms 2021-04-19 21:21:59 +03:00
parent e9cdf5ecb2
commit 748cf3b0f6
5 changed files with 6 additions and 13 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "fluence-it-types"
version = "0.1.1"
version = "0.2.0"
description = "Definitions of IValue and IType"
authors = ["Fluence Labs"]
edition = "2018"

View File

@ -1,6 +1,6 @@
[package]
name = "wasmer-interface-types-fl"
version = "0.19.0"
version = "0.20.0"
description = "WebAssembly Interface Types library for Wasmer"
license = "MIT"
authors = ["The Wasmer Engineering Team <engineering@wasmer.io>"]
@ -8,7 +8,7 @@ repository = "https://github.com/wasmerio/wasmer"
edition = "2018"
[dependencies]
fluence-it-types = { path = "../crates/it-types", version = "0.1.0", features = ["impls"] }
fluence-it-types = { path = "../crates/it-types", version = "0.2.0", features = ["impls"] }
it-to-bytes = { path = "../crates/to-bytes", version = "0.1.0" }
nom = "5.1"

View File

@ -2,7 +2,6 @@ mod lift_array;
mod lower_array;
mod memory_writer;
mod read_arrays;
mod write_arrays;
pub(crate) use lift_array::array_lift_memory_impl;
pub(crate) use lower_array::array_lower_memory_impl;

View File

@ -66,14 +66,9 @@ fn record_size(record_type: &IRecordType) -> usize {
record_size += match field_type.ty {
IType::Boolean | IType::S8 | IType::U8 => 1,
IType::S16 | IType::U16 => 2,
IType::S32
| IType::U32
| IType::I32
| IType::F32
| IType::String
| IType::ByteArray
| IType::Array(_)
| IType::Record(_) => 32,
IType::S32 | IType::U32 | IType::I32 | IType::F32 => 4,
IType::Record(_) => 4,
IType::String | IType::ByteArray | IType::Array(_) => 2 * 4,
IType::S64 | IType::U64 | IType::I64 | IType::F64 => 64,
};
}