-
ephemeral
: The development staging area. New API proposals API-changing fixes to existing APIs should be submitted as Pull Requests making changes to this directory. This directory provides no API stability or versioning. APIs in this directory use API module names starting withwasi_ephemeral_
. -
snapshot
: Usable APIs. APIs inephemeral
will be occasionally snapshotted and promoted intosnapshot
, with approval from the Subgroup, considering the overall suitability of the APIs themselves, their documentation, test coverage, and availability of polyfills when appropriate. Once merged, the API modules will be considered stable, though they may be superseded by newer versions. Proposals to promote specific APIs should be submitted as Pull Requests that:git mv
contents ofphases/snapshot/
tophases/old/snapshot_{old_snapshot_number}
.cp -R
contents ofphases/ephemeral/
intophases/snapshot/
.- Rename files copied into
phases/snapshot/
to substituteephemeral
forsnapshot
in file names. Append the new snapshot number to each name. - Update module names given in
.witx
files according to the previous step. - Update tests in
tools/witx/tests/wasi.rs
to point at new snapshot, and add a test pointing at the just-archived snapshot underold
. - Optionally, under `phases/old/snapshot_{old_snapshot_number}, add polyfills for superceded APIs using the new APIs.
Pull Requests may also add additional tests, documentation, or polyfills for existing
snapshot
APIs. -
old
: When APIs insnapshot
spec are replaced by new versions, the old API modules are moved to theold
directory. When possible,old
APIs may be accompanied by polyfill modules which implement their API in terms of newer versions of the API.
When WASI becomes more mature, such that we have an established base and we're adding incremental functionality to it, we may want to adopt a process like the CG's phases. However, right now, everything in WASI is undergoing changes, so we have a greater need to iterate with flexibility.
WASI should eventually become a standard at the level of WebAssembly
itself. Right now, it needs a lot of work before it's ready. The
snapshot
tree is meant to serve a practical purpose for people who
want to work with APIs today, with the understanding that everything
is still evolving. It's not meant as a replacement for proper
standardization, which will happen once the overall API is more
mature.