40 releases (15 stable)

new 3.2.0-beta.1 Mar 23, 2023
3.1.0 Dec 12, 2022
3.0.2 Nov 26, 2022
3.0.0-alpha.4 Jul 29, 2022
1.0.0-alpha5 Nov 6, 2020

#809 in WebAssembly

Download history 27702/week @ 2022-12-02 33077/week @ 2022-12-09 27377/week @ 2022-12-16 12751/week @ 2022-12-23 16929/week @ 2022-12-30 25045/week @ 2023-01-06 18498/week @ 2023-01-13 19122/week @ 2023-01-20 21802/week @ 2023-01-27 28681/week @ 2023-02-03 27897/week @ 2023-02-10 28462/week @ 2023-02-17 23608/week @ 2023-02-24 28645/week @ 2023-03-03 27833/week @ 2023-03-10 20072/week @ 2023-03-17

105,330 downloads per month
Used in 179 crates (33 directly)

MIT OR Apache-2.0 WITH LLVM-exception

220KB
5K SLoC

wasmer-types Build Status Join Wasmer Slack MIT License

This library provides all the types and traits necessary to use WebAssembly easily anywhere.

Among other things, it defines the following types:

  • units like Pages or Bytes
  • types and values like I32, I64, F32, F64, ExternRef, FuncRef, V128, value conversions, ExternType, FunctionType etc.
  • native contains a set of trait and implementations to deal with WebAssembly types that have a direct representation on the host,
  • memory_view, an API to read/write memories when bytes are interpreted as particular types (i8, i16, i32 etc.)
  • indexes contains all the possible WebAssembly module indexes for various types
  • initializers for tables, data etc.
  • features to enable or disable some WebAssembly features inside the Wasmer runtime

Acknowledgments

This project borrowed some of the code for the entity structure from cranelift-entity. We decided to move it here to help on serialization/deserialization.

Please check Wasmer ATTRIBUTIONS to further see licenses and other attributions of the project.

Dependencies

~3MB
~63K SLoC