File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ that are using `wasi_snapshot_preview1` APIs.
136136The ` wasm-tools component new ` subcommand takes an ` --adapt ` argument which acts
137137as a way to polyfill non-component-model APIs, like ` wasi_snapshot_preview1 ` ,
138138with component model APIs. The [ preview2-prototyping] project is the current
139- go-to location to to acquire a polyfill from ` wasi_snapshot_preview1 ` to an
139+ go-to location to acquire a polyfill from ` wasi_snapshot_preview1 ` to an
140140in-development version of "wasi preview2" which is specified with [ WIT]
141141and the component model.
142142
@@ -183,6 +183,13 @@ The Rust compiler supports a native `wasm32-wasi` target and can be added to any
183183rustup target add wasm32-wasi
184184```
185185
186+ In order to compile a wasi dynamic library, the following must be added to the ` Cargo.toml ` file:
187+
188+ ``` toml
189+ [lib ]
190+ crate-type = [" cdylib" ]
191+ ```
192+
186193Projects can then depend on ` wit-bindgen ` by executing:
187194
188195``` sh
You can’t perform that action at this time.
0 commit comments