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.
136
136
The ` wasm-tools component new ` subcommand takes an ` --adapt ` argument which acts
137
137
as a way to polyfill non-component-model APIs, like ` wasi_snapshot_preview1 ` ,
138
138
with 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
140
140
in-development version of "wasi preview2" which is specified with [ WIT]
141
141
and the component model.
142
142
@@ -183,6 +183,13 @@ The Rust compiler supports a native `wasm32-wasi` target and can be added to any
183
183
rustup target add wasm32-wasi
184
184
```
185
185
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
+
186
193
Projects can then depend on ` wit-bindgen ` by executing:
187
194
188
195
``` sh
You can’t perform that action at this time.
0 commit comments