diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b0db1ecd8c..10f89304511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ ### Changed +- [#1810](https://github.com/wasmerio/wasmer/pull/1810) Make the `state` field of `WasiEnv` public + ### Fixed - [#1764](https://github.com/wasmerio/wasmer/pull/1764) Fix bug in WASI `path_rename` allowing renamed files to be 1 directory below a preopened directory. diff --git a/lib/wasi/src/lib.rs b/lib/wasi/src/lib.rs index 80934bfb741..cdca70e6ed3 100644 --- a/lib/wasi/src/lib.rs +++ b/lib/wasi/src/lib.rs @@ -50,7 +50,9 @@ pub enum WasiError { /// The environment provided to the WASI imports. #[derive(Debug, Clone)] pub struct WasiEnv { - state: Arc>, + /// Shared state of the WASI system. Manages all the data that the + /// executing WASI program can see. + pub state: Arc>, memory: Arc, }