enum Wasmer::Wasi::Version

Overview

Represents the possible WASI versions.

Defined in:

wasmer/wasi.cr

Enum Members

Latest = 0

Latest version. It's a “floating” version, i.e. it's an alias to the latest version. Using this version is a way to ensure that modules will run only if they come with the latest WASI version (in case of security issues for instance), by just updating the runtime.

Snapshot0 = 1

Represents the wasi unstable version

Snapshot1 = 2

Represents the wasi snapshot preview1 version

Invalid = -1

Represents an invalid version

Instance Method Summary

Instance Method Detail

def invalid? #

[View source]
def latest? #

[View source]
def snapshot0? #

[View source]
def snapshot1? #

[View source]
def to_s(io : IO) : Nil #
Description copied from struct Enum

Appends a String representation of this enum member to the given io.

See also: #to_s.


[View source]