Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

preopens question #141

@yamt

Description

@yamt

hi,

i'm trying to use the host command to run adapted preview1 modules. i was able to run simple "hello" style modules.
eg.

wasm-tools component new hello.wasm --adapt wasi_snapshot_preview1.wasm -o chello.wasm
host chello.wasm

however, for a bit more complex modules which involve filesystem operations, i failed to find a way to specify preopens.
(i'm looking for functionality equiv of wasmtime run --dir)

i guess this get-directories thing is related.

get-directories: func() -> list<tuple<descriptor, string>>

any help? thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions