4751 Commits

Author SHA1 Message Date
bors[bot]
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
bors[bot]
220ad08337
Merge #1145
1145: Update io device file name r=MarkMcCaskey a=MarkMcCaskey

Small update

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-14 02:03:20 +00:00
Mark McCaskey
3fd1408cbc Update io device file name 2020-01-13 17:56:46 -08:00
Syrus Akbary
88d0dc5626
Merge pull request #1144 from Hywan/fix-runtime-c-api-build
fix(runtime-c-api) Remove duplicated line
2020-01-13 18:01:56 +01:00
Ivan Enderlin
6dbfa9d4a2 fix(runtime-c-api) Remove duplicated line.
A copy-paste error has been spotted!
2020-01-13 17:11:12 +01:00
Syrus
a1d8b9aa5b Move backend_id to static str 2020-01-13 15:40:09 +01:00
losfair
f4fb1077c9 Fix type of backend passed to push_code_version. 2020-01-13 22:39:04 +08:00
losfair
42e5e7881f Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-13 22:36:55 +08:00
Syrus Akbary
cb5cf00442
Update CHANGELOG.md 2020-01-13 15:14:56 +01:00
Ivan Enderlin
7df0bbcc1e doc(runtime-c-api) Setup Doxygen. 2020-01-13 15:14:30 +01:00
Syrus
fcb158b243 Fixed cache 2020-01-13 15:11:02 +01:00
Syrus
c45819de32 Remove unnecessary import 2020-01-13 14:59:50 +01:00
Syrus Akbary
3d00903054
Merge branch 'master' into blake3 2020-01-13 13:26:31 +01:00
bors[bot]
b27c35326c
Merge #1099
1099: Remove backend::Backend from runtime-core r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

This PR removes the dependency of a Backend in runtime-core. So it's agnostic and more backends can be plugged in easily.

Why this is important?
* By removing backends from wasmer-runtime-core we can make the runtime agnostic, so anyone can plug their own backend into Wasmer without needing to touch the main source code (V8, JavascriptCore, wasm3, ...).
* It simplifies the codebase and avoids code leaks from the backend to the runtime API.

<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [x] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-01-13 11:05:20 +00:00
Syrus
3892ea827d Fixed lint 2020-01-13 12:04:39 +01:00
Syrus
6c0568798f Added Blake3 changes into changelog 2020-01-13 12:02:07 +01:00
Syrus
661df38cf2 Use blake3 instead of blake2_simd 2020-01-13 11:58:31 +01:00
Syrus
846c632b50 Fixed runtime check 2020-01-13 10:17:37 +01:00
Syrus
4faa78b38c Fixed changelog link 2020-01-13 10:17:37 +01:00
Syrus
aa6189a06a Make all tests pass 2020-01-13 10:17:37 +01:00
dependabot-preview[bot]
22e35fc670 Bump cc from 1.0.48 to 1.0.50
Bumps [cc](https://github.com/alexcrichton/cc-rs) from 1.0.48 to 1.0.50.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases)
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.48...1.0.50)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 10:17:37 +01:00
dependabot-preview[bot]
f18a4280a6 Bump regex from 1.3.1 to 1.3.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.1...1.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 10:17:36 +01:00
dependabot-preview[bot]
00618e852e Bump parking_lot from 0.9.0 to 0.10.0
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.9.0...0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 10:17:36 +01:00
dependabot-preview[bot]
8fd143368d Bump getrandom from 0.1.13 to 0.1.14
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.1.13...v0.1.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 10:17:36 +01:00
Mark McCaskey
5b52589021 Update the experimental io device path to include /dev/ 2020-01-13 10:17:36 +01:00
Mark McCaskey
cc28804efe Update the name of experimental IO devices in fs 2020-01-13 10:17:36 +01:00
Syrus Akbary
da0d8b39c5
Merge pull request #1139 from wasmerio/dependabot/cargo/cc-1.0.50
Bump cc from 1.0.48 to 1.0.50
2020-01-13 10:10:51 +01:00
Syrus Akbary
0eb6ea0800
Merge pull request #1138 from wasmerio/dependabot/cargo/regex-1.3.3
Bump regex from 1.3.1 to 1.3.3
2020-01-13 10:10:38 +01:00
Syrus Akbary
10d9650d5f
Merge pull request #1136 from wasmerio/dependabot/cargo/parking_lot-0.10.0
Bump parking_lot from 0.9.0 to 0.10.0
2020-01-13 10:10:24 +01:00
Syrus Akbary
82a9881ccb
Merge pull request #1135 from wasmerio/dependabot/cargo/getrandom-0.1.14
Bump getrandom from 0.1.13 to 0.1.14
2020-01-13 10:10:12 +01:00
dependabot-preview[bot]
cbd5ed1916
Bump cc from 1.0.48 to 1.0.50
Bumps [cc](https://github.com/alexcrichton/cc-rs) from 1.0.48 to 1.0.50.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases)
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.48...1.0.50)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 07:59:14 +00:00
dependabot-preview[bot]
25f75a0f98
Bump regex from 1.3.1 to 1.3.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.1...1.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 07:58:45 +00:00
dependabot-preview[bot]
5364b2c308
Bump parking_lot from 0.9.0 to 0.10.0
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.9.0...0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 07:57:23 +00:00
dependabot-preview[bot]
1556e3090c
Bump getrandom from 0.1.13 to 0.1.14
Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.1.13 to 0.1.14.
- [Release notes](https://github.com/rust-random/getrandom/releases)
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.1.13...v0.1.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 07:56:50 +00:00
Ivan Enderlin
176152e7d5 test(runtime-c-api) Remove a hardcoded value. 2020-01-13 07:46:48 +01:00
Ivan Enderlin
b5e96b8aa1 doc(changelog) Add #1133. 2020-01-13 07:40:33 +01:00
Ivan Enderlin
6e7d5baccc chore(runtime-c-api) Update C/C++ headers. 2020-01-13 07:39:04 +01:00
Ivan Enderlin
b494bd860d doc(runtime-c-api) Improve wasmer_import_func_new's documentation. 2020-01-13 07:35:57 +01:00
Ivan Enderlin
a506411eb5 doc(runtime-c-api) Improve documentation of wasmer_import_trap. 2020-01-13 07:35:37 +01:00
Ivan Enderlin
b45ead289f test(runtime-c-api) Test wasmer_import_trap. 2020-01-13 07:22:03 +01:00
Ivan Enderlin
8790f6dbc9 feat(runtime-c-api) Check pointers aren't null in wasmer_import_trap. 2020-01-13 07:20:06 +01:00
bors[bot]
95cc18ae8f
Merge #1134
1134: Update the name of experimental IO devices in fs r=MarkMcCaskey a=MarkMcCaskey



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-11 01:11:42 +00:00
Mark McCaskey
2fb9415e32 Update the experimental io device path to include /dev/ 2020-01-10 17:10:46 -08:00
Mark McCaskey
600f4ded9e Update the name of experimental IO devices in fs 2020-01-10 17:00:26 -08:00
Ivan Enderlin
4bf3d6dd41 test(runtime-c-api) Test wasmer_import_trap. 2020-01-10 15:14:52 +01:00
Ivan Enderlin
c7a4825bee doc(runtime-core) Update documentation. 2020-01-10 15:14:34 +01:00
Ivan Enderlin
684620435f chore(runtime-c-api) Update headers. 2020-01-10 15:14:18 +01:00
Ivan Enderlin
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
Ivan Enderlin
e913e8928f chore(runtime-c-api) Fix CS. 2020-01-10 15:12:56 +01:00
Ivan Enderlin
ec378597f1 chore(runtime-c-api) Update headers. 2020-01-10 14:49:14 +01:00