move all imports to module "env", some tweaks to rust example

This commit is contained in:
2021-11-06 19:46:16 +01:00
parent 32d2519d2d
commit d86f91789b
8 changed files with 126 additions and 86 deletions

1
site/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/public/

View File

@@ -14,19 +14,18 @@ at offset 120 in memory.
The memory has to be imported as `"env" "memory"` and has a maximum size of 256kb (4 pages).
Other imports provided by the platform:
Other imports provided by the platform, also all in module `env`:
* in module `math`:
* * `fn acos(f32) -> f32`
* * `fn asin(f32) -> f32`
* * `fn atan(f32) -> f32`
* * `fn atan2(f32, f32) -> f32`
* * `fn cos(f32) -> f32`
* * `fn exp(f32, f32) -> f32`
* * `fn log(f32) -> f32`
* * `fn sin(f32) -> f32`
* * `fn tan(f32) -> f32`
* * `fn pow(f32) -> f32`
* `fn acos(f32) -> f32`
* `fn asin(f32) -> f32`
* `fn atan(f32) -> f32`
* `fn atan2(f32, f32) -> f32`
* `fn cos(f32) -> f32`
* `fn exp(f32, f32) -> f32`
* `fn log(f32) -> f32`
* `fn sin(f32) -> f32`
* `fn tan(f32) -> f32`
* `fn pow(f32) -> f32`
## `.uw8` format

File diff suppressed because one or more lines are too long