@@ -7,8 +7,8 @@ applications, in particular from
77[ x/wasm] ( https://github.com/CosmWasm/wasmd/tree/master/x/wasm ) .
88
99More information on what is CosmWasm and how to use it can be found here:
10- [ CosmWasm Docs] ( https://docs.cosmwasm.com ) . To generate and show
11- the Rust part documentation you can run ` make doc-rust ` .
10+ [ CosmWasm Docs] ( https://docs.cosmwasm.com ) . To generate and show the Rust part
11+ documentation you can run ` make doc-rust ` .
1212
1313## Structure
1414
@@ -80,8 +80,9 @@ CGO_ENABLED=0 go build ./types
8080
8181This package contains the code binding the libwasmvm build to the Go code. All
8282low level FFI handling code belongs there. This package can only be built using
83- cgo. Using the ` internal/ ` convention makes this package fully private.
84- For an overview of the exported C functions and their Go wrappers see [ docs/CGO_INTERFACE.md] ( docs/CGO_INTERFACE.md ) .
83+ cgo. Using the ` internal/ ` convention makes this package fully private. For an
84+ overview of the exported C functions and their Go wrappers see
85+ [ docs/CGO_INTERFACE.md] ( docs/CGO_INTERFACE.md ) .
8586
8687#### Package github.com/CosmWasm/wasmvm
8788
@@ -103,6 +104,17 @@ linking disabled an additional build tag is available.
103104go build -tags " nolink_libwasmvm"
104105```
105106
107+ You can also build using the experimental
108+ [ wazero] ( https://github.com/tetratelabs/wazero ) runtime which removes the need
109+ for CGO:
110+
111+ ``` sh
112+ CGO_ENABLED=0 go build -tags wazero .
113+ ```
114+
115+ Once wazero has feature parity with the Rust implementation, the Rust dependency
116+ will be removed.
117+
106118## Supported Platforms
107119
108120See [ COMPILER_VERSIONS.md] ( docs/COMPILER_VERSIONS.md ) for information on Go and
@@ -153,9 +165,9 @@ which for example excludes all 32 bit systems.
153165
154166## Development
155167
156- There are two halves to this code - go and rust. The first step is to ensure that
157- there is a proper dll built for your platform. This should be ` api/libwasmvm.X ` ,
158- where X is:
168+ There are two halves to this code - go and rust. The first step is to ensure
169+ that there is a proper dll built for your platform. This should be
170+ ` api/libwasmvm.X ` , where X is:
159171
160172- ` so ` for Linux systems
161173- ` dylib ` for MacOS
0 commit comments