Wasmer
A complete and mature WebAssembly runtime for Crystal based on Wasmer.
Constants
F32 = ValueKind::F32
F64 = ValueKind::F64
I32 = ValueKind::I32
handy constants to ValueKind so one can use Wasmer::I32 instead of Wasmer::ValueKind::I32
I64 = ValueKind::I64
Immutable = GlobalMutability::Immutable
Mutable = GlobalMutability::Mutable
VERSION = {{ (`shards version \"/tmp/tmp.KCDHME/src/src\"`).chomp.stringify.downcase }}
Class methods
c_to_valuelist(values : LibWasmer::WasmValVecT) : Array(Value)
Sourcemax_unbound
Returns the value used to represent an unbound limit.
i.e. when a limit only has a min but not a max.
See Limits
new_instance(mod : Module, imports : ImportObject = ImportObject.new)
Sourcevalue_types(kinds : Array(ValueKind)) : Array(ValueType)
Sourcevalue_types
Sourcevalue_types(*kinds : ValueKind) : Array(ValueType)
Instantiates a new ValueType array from a list of ValueKind. Helper function specifically designed to help you declare function types
version
Sourcewat2wasm(wat : String) : Bytes
wat2wasm parses a string as either WAT or a binary Wasm module See https://webassembly.github.io/spec/core/text/index.html Note: This is not part of the standard Wasm C API. It is Wasmer specific
Nested types
- Wasmer::CompilerKind
- Wasmer::Config
- Wasmer::CpuFeatures
- Wasmer::Engine
- Wasmer::EngineKind
- Wasmer::ExportType
- Wasmer::Exports
- Wasmer::Extern
- Wasmer::ExternKind
- Wasmer::ExternType
- Wasmer::Frame
- Wasmer::FuncEnvProc
- Wasmer::FuncProc
- Wasmer::Function
- Wasmer::FunctionType
- Wasmer::Global
- Wasmer::GlobalMutability
- Wasmer::GlobalType
- Wasmer::HostFunction
- Wasmer::ImportObject
- Wasmer::ImportType
- Wasmer::Instance
- Wasmer::Limits
- Wasmer::Memory
- Wasmer::MemoryType
- Wasmer::Module
- Wasmer::Name
- Wasmer::Pages
- Wasmer::Store
- Wasmer::Table
- Wasmer::TableType
- Wasmer::Target
- Wasmer::Trace
- Wasmer::Trap
- Wasmer::TrapException
- Wasmer::Triple
- Wasmer::Types
- Wasmer::UserEnv
- Wasmer::Value
- Wasmer::ValueKind
- Wasmer::ValueType
- Wasmer::Wasi
- Wasmer::WasmerError
- Wasmer::WithExtern
- Wasmer::WithExternType