Skip to content

Wasmtime and jco componentize have different wasmtime config.toml requirements #715

Open
@thomas9911

Description

@thomas9911

Running wasmtime 33.0.0 and jco 1.11.2.

jco requires to have the cache enabled option set:

[cache]
enabled = true

wasmtime gives an error:

Caused by:
    TOML parse error at line 5, column 1
      |
    5 | enabled = true
      | ^^^^^^^
    unknown field `enabled`, expected `cache`

removing this field errors jco:

Caused by:
    TOML parse error at line 5, column 1
      |
    5 | [cache]
      | ^^^^^^^
    missing field `enabled`
    
(jco componentize) Error: Failed to initialize the compiled Wasm binary with Wizer:
Wizering failed to complete

commands ran:

jco componentize -d all -w wit -o dist/simple-result-js.wasm src/index.js
wasmtime run --invoke 'add(0,0)' dist/simple-result-js.wasm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions