Commit Graph

3147 Commits

Author SHA1 Message Date
d343cd1d2d Improved C-API documentation links 2020-01-15 11:01:48 +01:00
fb06ee33e3 test(runtime-c-api) Rename wasmer_import_trap to wasmer_trap. 2020-01-15 08:47:52 +01:00
ce3fb49b21 Merge branch 'master' into feat-runtime-c-api-import-trap 2020-01-15 08:44:56 +01:00
cd16a7d1a7 chore(runtime-c-api) Update C/C++ headers. 2020-01-15 08:42:17 +01:00
bcbde69694 doc(runtime-core) Fix a typo. 2020-01-15 08:41:37 +01:00
4cdf868a0b doc(runtime-c-api) Explain why code is unreachable in wasmer_trap. 2020-01-15 08:40:36 +01:00
c0b439e66a feat(runtime-c-api) Rename wasmer_import_trap to wasmer_trap. 2020-01-15 08:37:20 +01:00
286e5db370 Remove vestigial debug features from various crates 2020-01-14 13:03:19 -08:00
12f7416a85 Update logging to use log, add command line flag to toggle it 2020-01-14 12:41:46 -08:00
6dfd5916c2 Improve error message on exception. 2020-01-14 20:56:34 +08:00
a45cbd6bbc Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-14 20:47:14 +08:00
220bbc9563 Trying to improve docs build pipeline 2020-01-14 13:17:47 +01:00
9a0f51f621 Merge branch 'master' into blake3 2020-01-14 10:33:13 +01:00
1cd198a5a5 Use a 32 byte array instead of 64 one 2020-01-14 10:32:32 +01:00
4099cc1984 Merge #1142
1142: doc(runtime-c-api) Setup Doxygen r=syrusakbary a=Hywan

With @MarkMcCaskey, we discussed generating the documentation of `wasmer-runtime-c-api` with [Doxygen](http://www.doxygen.nl/).

This patch does the following:

1. Set up a `doxyfile`, which is the configuration file for Doxygen.
2. Set up a `doc/header.html` and `doc/footer.html` files, because Doxygen HTML output is… well, not a master piece 😉.
3. Set up a `doc/css/wasmer.css` stylesheet. I tried to mimic Wasmer color scheme. Usually, I'm not a bad designer, but Doxygen HTML output is so “alembic-ed” that it makes customizing the CSS a real challenge for the very short period of time I've.

Anyway, I believe it's an acceptable first step.

To generate the documentation:

```sh
$ doxygen doxyfile
```

And then open `doc/html/index.html`.

It looks like this:

![Screen Shot 2020-01-13 at 15 20 09](https://user-images.githubusercontent.com/946104/72263046-692ea100-3618-11ea-9feb-6dfd3244d375.png)
![Screen Shot 2020-01-13 at 15 20 25](https://user-images.githubusercontent.com/946104/72263072-70ee4580-3618-11ea-941d-fa652bd7f14e.png)
![Screen Shot 2020-01-13 at 15 20 35](https://user-images.githubusercontent.com/946104/72263082-7481cc80-3618-11ea-81e7-f4da7b71d665.png)
![Screen Shot 2020-01-13 at 15 20 57](https://user-images.githubusercontent.com/946104/72263098-78155380-3618-11ea-9cfc-16b7695c9e89.png)

The next step is to publish the documentation on Github Pages, thoughts @syrusakbary?

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-14 08:08:06 +00:00
3fd1408cbc Update io device file name 2020-01-13 17:56:46 -08:00
6dbfa9d4a2 fix(runtime-c-api) Remove duplicated line.
A copy-paste error has been spotted!
2020-01-13 17:11:12 +01:00
a1d8b9aa5b Move backend_id to static str 2020-01-13 15:40:09 +01:00
42e5e7881f Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-13 22:36:55 +08:00
7df0bbcc1e doc(runtime-c-api) Setup Doxygen. 2020-01-13 15:14:30 +01:00
fcb158b243 Fixed cache 2020-01-13 15:11:02 +01:00
c45819de32 Remove unnecessary import 2020-01-13 14:59:50 +01:00
3d00903054 Merge branch 'master' into blake3 2020-01-13 13:26:31 +01:00
3892ea827d Fixed lint 2020-01-13 12:04:39 +01:00
661df38cf2 Use blake3 instead of blake2_simd 2020-01-13 11:58:31 +01:00
846c632b50 Fixed runtime check 2020-01-13 10:17:37 +01:00
5b52589021 Update the experimental io device path to include /dev/ 2020-01-13 10:17:36 +01:00
cc28804efe Update the name of experimental IO devices in fs 2020-01-13 10:17:36 +01:00
176152e7d5 test(runtime-c-api) Remove a hardcoded value. 2020-01-13 07:46:48 +01:00
6e7d5baccc chore(runtime-c-api) Update C/C++ headers. 2020-01-13 07:39:04 +01:00
b494bd860d doc(runtime-c-api) Improve wasmer_import_func_new's documentation. 2020-01-13 07:35:57 +01:00
a506411eb5 doc(runtime-c-api) Improve documentation of wasmer_import_trap. 2020-01-13 07:35:37 +01:00
b45ead289f test(runtime-c-api) Test wasmer_import_trap. 2020-01-13 07:22:03 +01:00
8790f6dbc9 feat(runtime-c-api) Check pointers aren't null in wasmer_import_trap. 2020-01-13 07:20:06 +01:00
2fb9415e32 Update the experimental io device path to include /dev/ 2020-01-10 17:10:46 -08:00
600f4ded9e Update the name of experimental IO devices in fs 2020-01-10 17:00:26 -08:00
4bf3d6dd41 test(runtime-c-api) Test wasmer_import_trap. 2020-01-10 15:14:52 +01:00
c7a4825bee doc(runtime-core) Update documentation. 2020-01-10 15:14:34 +01:00
684620435f chore(runtime-c-api) Update headers. 2020-01-10 15:14:18 +01:00
35459c2931 feat(runtime-c-api) Implement wasmer_import_trap.
The new `wasmer_import_trap` allows a host function to fail properly
with the Wasmer trapping API.
2020-01-10 15:13:30 +01:00
e913e8928f chore(runtime-c-api) Fix CS. 2020-01-10 15:12:56 +01:00
ec378597f1 chore(runtime-c-api) Update headers. 2020-01-10 14:49:14 +01:00
9ca97706d7 Merge branch 'master' into backend-refactor 2020-01-10 13:41:49 +01:00
f353ac00eb Remove unused backend flags 2020-01-10 13:40:21 +01:00
66574e3e27 Merge branch 'master' into fix/import-object-allow-missing 2020-01-10 11:16:09 +01:00
be29b2e007 Merge #1128
1128: fix(runtime-core) Avoid crashing when missing host functions are allowed r=Hywan a=Hywan

Fix #1118. #1121 can be merged after

This PR fixes 2 things:

* When droping the import backing, check that `vm::FuncCtx` isn't null before dropping it,
* Use an `always_trap` as a placeholder host function when a host function is missing.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-10 09:23:58 +00:00
9b2f0fc635 chore(runtime-core) Avoid code duplication. 2020-01-10 10:15:26 +01:00
57b6ad0600 Merge #1126
1126: Set default scale on fb window to fit screen r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-09 22:15:02 +00:00
fab3b787eb Merge #1130
1130: Add WindowClosed event to experimental fb r=MarkMcCaskey a=MarkMcCaskey

Allows things to behave properly and know when the window closes

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-09 20:25:36 +00:00
10da5bab6c Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-10 02:58:50 +08:00