Module: RubyWasm::Packager::ComponentAdapter

Defined in:
lib/ruby_wasm/packager/component_adapter.rb

Class Method Summary collapse

Class Method Details

.wasi_snapshot_preview1(exec_model) ⇒ Object

The path to the component adapter for the given WASI execution model.

Parameters:

  • exec_model (String)

    “command” or “reactor”



7
8
9
10
11
12
13
# File 'lib/ruby_wasm/packager/component_adapter.rb', line 7

def wasi_snapshot_preview1(exec_model)
  File.join(
    File.dirname(__FILE__),
    "component_adapter",
    "wasi_snapshot_preview1.#{exec_model}.wasm"
  )
end