Skip to content

Commit

Permalink
Enable new WIT encoding by default
Browse files Browse the repository at this point in the history
This commit enables the new encoding for WIT packages in WebAssembly
components described in WebAssembly/component-model#248 and originally
implemented in bytecodealliance#1252. Support for the new encoding has been in a
wasm-tools for a bit and it's also released with Wasmtime 14. This
switch means that infrastructure will start being exposed to it by
default now. Support for the old encoding remains to assist with interop
as well. In a release or two support for creating the old encoding will
be removed.
  • Loading branch information
alexcrichton committed Nov 1, 2023
1 parent 9a31c5b commit 1ddf02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wit-component/src/encoding/wit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use wit_parser::{PackageId, Resolve, WorldId};
mod v1;
mod v2;

const ENCODE_V2_BY_DEFAULT: bool = false;
const ENCODE_V2_BY_DEFAULT: bool = true;

fn use_v2_encoding() -> bool {
match std::env::var("WIT_COMPONENT_ENCODING_V2") {
Expand Down

0 comments on commit 1ddf02f

Please sign in to comment.