Skip to content

Commit

Permalink
Rename wasi-base to wasi-cli-base. (#171)
Browse files Browse the repository at this point in the history
This is just a rename, and it's not yet clear what shape wasi-cli-base
will ultimately take, but for now, it's useful to avoid confusion about
whether wasi-base is meant to be used by all WASI worlds. It is a base
for CLI-like worlds that have command-line args, environment variables,
and exit statuses, and not all WASI worlds will have those.
  • Loading branch information
sunfishcode authored May 11, 2023
1 parent f70eb99 commit 22763b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion test-programs/reactor-tests/wit/deps/wasi-base

This file was deleted.

1 change: 1 addition & 0 deletions test-programs/reactor-tests/wit/deps/wasi-cli-base
6 changes: 3 additions & 3 deletions test-programs/reactor-tests/wit/test-reactor.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
default world test-reactor {

import environment: wasi-base.environment
import environment: wasi-cli-base.environment
import streams: io.streams
import preopens: wasi-base.preopens
import preopens: wasi-cli-base.preopens
import filesystem: filesystem.filesystem
import exit: wasi-base.exit
import exit: wasi-cli-base.exit

export add-strings: func(s: list<string>) -> u32
export get-strings: func() -> list<string>
Expand Down
6 changes: 3 additions & 3 deletions wasi-common/src/wasi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ wasmtime::component::bindgen!({
import random: random.random
import poll: poll.poll
import streams: io.streams
import environment: wasi-base.environment
import preopens: wasi-base.preopens
import exit: wasi-base.exit
import environment: wasi-cli-base.environment
import preopens: wasi-cli-base.preopens
import exit: wasi-cli-base.exit
import console: logging.handler
import default-outgoing-HTTP: http.outgoing-handler
",
Expand Down

0 comments on commit 22763b4

Please sign in to comment.