Add wasm sample for CI (#2372)

* Add wasm sample for CI

* Add wasm sample for CI

* Add wasm sample for CI
This commit is contained in:
Jonathan Turner
2020-08-19 07:34:05 +12:00
committed by GitHub
parent 738541f727
commit 43e061f8c6
17 changed files with 492 additions and 17 deletions

View File

@@ -76,6 +76,7 @@ impl Host for BasicHost {
}
}
#[allow(unused_variables)]
fn vars(&mut self) -> Vec<(String, String)> {
#[cfg(not(target_arch = "wasm32"))]
{
@@ -88,6 +89,7 @@ impl Host for BasicHost {
}
}
#[allow(unused_variables)]
fn env_get(&mut self, key: OsString) -> Option<OsString> {
#[cfg(not(target_arch = "wasm32"))]
{
@@ -99,6 +101,7 @@ impl Host for BasicHost {
}
}
#[allow(unused_variables)]
fn env_set(&mut self, key: OsString, value: OsString) {
#[cfg(not(target_arch = "wasm32"))]
{
@@ -106,6 +109,7 @@ impl Host for BasicHost {
}
}
#[allow(unused_variables)]
fn env_rm(&mut self, key: OsString) {
#[cfg(not(target_arch = "wasm32"))]
{