From 2bddca09dcb2fc857c1570fffa7aa3d7a3acf958 Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Tue, 10 Nov 2020 22:38:37 +0000 Subject: [PATCH 1/3] It's nice to be able to get an unlocked mutex --- lib/wasi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wasi/src/lib.rs b/lib/wasi/src/lib.rs index 80934bfb741..0084d13645d 100644 --- a/lib/wasi/src/lib.rs +++ b/lib/wasi/src/lib.rs @@ -50,7 +50,7 @@ pub enum WasiError { /// The environment provided to the WASI imports. #[derive(Debug, Clone)] pub struct WasiEnv { - state: Arc>, + pub state: Arc>, memory: Arc, } From ed749e9c11c3514b5aaea9db252308716f40ff09 Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Wed, 18 Nov 2020 19:33:25 +0000 Subject: [PATCH 2/3] Add a doc-comment about the new public field --- lib/wasi/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wasi/src/lib.rs b/lib/wasi/src/lib.rs index 0084d13645d..cdca70e6ed3 100644 --- a/lib/wasi/src/lib.rs +++ b/lib/wasi/src/lib.rs @@ -50,6 +50,8 @@ pub enum WasiError { /// The environment provided to the WASI imports. #[derive(Debug, Clone)] pub struct WasiEnv { + /// Shared state of the WASI system. Manages all the data that the + /// executing WASI program can see. pub state: Arc>, memory: Arc, } From bc72c20fd3149ad21f6966b1b3a1d6adc489fe0f Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Wed, 18 Nov 2020 19:37:24 +0000 Subject: [PATCH 3/3] Updated CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) 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.