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
max_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
SourceInstantiates a new ValueType array from a list of ValueKind. Helper function specifically designed to help you declare function types
version
SourceNested 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