5003 Commits

Author SHA1 Message Date
Mark McCaskey
800b2a42cc Add debug prototype 2 (fork of wasmtime-debug) 2020-01-31 12:42:09 -08:00
losfair
455783aa21 Make full preemption an optional feature. 2020-02-01 01:12:06 +08:00
Syrus Akbary
a6c55ea548
Merge pull request #1181 from Hywan/doc-runtime-c-api-value
doc(runtime-c-api) Improve documentation of the `value` module
2020-01-29 08:55:46 -08:00
Ivan Enderlin
743b192512 chore(runtime-c-api) Update C/C++ headers. 2020-01-29 14:50:18 +01:00
Ivan Enderlin
5fb7f4ea3b doc(runtime-c-api) Generate documentation for wasmer.h only. 2020-01-29 14:49:45 +01:00
Ivan Enderlin
a2ddbab03d doc(runtime-c-api) Improve documentation of wasmer_value_t. 2020-01-29 14:49:20 +01:00
Ivan Enderlin
9c4ce52d45 doc(runtime-c-api) Improve documentation of wasmer_value. 2020-01-29 14:48:57 +01:00
Ivan Enderlin
5d7020a296 doc(runtime-c-api) Improve documentation of wasmer_value_tag. 2020-01-29 14:47:56 +01:00
Syrus Akbary
cc3eee47ae
Merge pull request #1137 from wasmerio/dependabot/cargo/wasmparser-0.45.2
Bump wasmparser from 0.45.0 to 0.45.2
2020-01-28 15:47:52 -08:00
bors[bot]
c5d033e760
Merge #1120
1120: Port to FreeBSD r=MarkMcCaskey 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

I disovered this great patch today: https://github.com/MikaelUrankar/webasm/blob/master/www/wasmer/files/patch-freebsd

And then realized that @MikaelUrankar forked wasmer to add support for FreeBSD.

I'm creating this PR to follow up on that fork and merge the changes upstream.

@MikaelUrankar let us know if everything is good to go with this PR!

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

# Review

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


Co-authored-by: MikaelUrankar <mikael.urankar@gmail.com>
2020-01-28 22:08:39 +00:00
MikaelUrankar
fcbdada259 Port to FreeBSD 2020-01-28 21:49:55 +01:00
dependabot-preview[bot]
98ce368278
Bump wasmparser from 0.45.0 to 0.45.2
Bumps [wasmparser](https://github.com/yurydelendik/wasmparser.rs) from 0.45.0 to 0.45.2.
- [Release notes](https://github.com/yurydelendik/wasmparser.rs/releases)
- [Commits](https://github.com/yurydelendik/wasmparser.rs/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-28 18:58:41 +00:00
bors[bot]
589a99452c
Merge #1180
1180: Fix compilation for target `x86_64-unknown-linux-musl`. r=losfair a=losfair

Fixes compilation failure when built for `x86_64-unknown-linux-musl`.

- Allows disabling the `wabt` feature to avoid depending on a C++ compiler.
- Disables XMM register dump on fault as a workaround for missing musl libc types (https://github.com/rust-lang/libc/pull/1646).

Fixes https://github.com/wasmerio/wasmer/issues/1178 and https://github.com/wasmerio/wasmer/issues/1173 .

Co-authored-by: losfair <zhy20000919@hotmail.com>
2020-01-28 18:40:10 +00:00
losfair
6fa199614b Install musl-tools 2020-01-29 01:18:25 +08:00
losfair
5119fb3d68 Add musl build target for CI. 2020-01-29 01:07:55 +08:00
losfair
bf5234b06f Fix kernel-loader with musl. 2020-01-29 01:07:23 +08:00
losfair
f5d2294126 Update changelog 2020-01-29 00:50:18 +08:00
losfair
fb15aa003e Cargo fmt 2020-01-29 00:43:24 +08:00
losfair
8845e1104b Fix musl compatibility issues. 2020-01-29 00:38:39 +08:00
losfair
5476994c90 Remove CLI dependency on wabt. 2020-01-29 00:38:25 +08:00
losfair
8411e56f4f Make wabt optional. 2020-01-29 00:37:43 +08:00
Syrus
05227266df Fix tag overwritting 2020-01-27 17:13:58 -08:00
Syrus Akbary
1d4d2a0200
Merge pull request #1176 from wasmerio/dependabot/cargo/smallvec-1.1.0
Bump smallvec from 0.6.13 to 1.1.0
2020-01-27 11:47:08 -08:00
Syrus Akbary
e2ca217cb7
Merge pull request #1177 from wasmerio/dependabot/cargo/blake3-0.1.3
Bump blake3 from 0.1.0 to 0.1.3
2020-01-27 11:46:57 -08:00
dependabot-preview[bot]
ff2533a3e2
Bump blake3 from 0.1.0 to 0.1.3
Bumps [blake3](https://github.com/BLAKE3-team/BLAKE3) from 0.1.0 to 0.1.3.
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases)
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/0.1.0...0.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 07:48:05 +00:00
dependabot-preview[bot]
c00cd2ce3c
Bump smallvec from 0.6.13 to 1.1.0
Bumps [smallvec](https://github.com/servo/rust-smallvec) from 0.6.13 to 1.1.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v0.6.13...v1.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 07:47:27 +00:00
bors[bot]
9ce1fb26aa
Merge #1174
1174: Clean up misc. bits of runtime-core r=MarkMcCaskey a=MarkMcCaskey

Also includes the lock file which has been showing up in my diffs for a while, so I guess I should commit it 


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-24 23:32:35 +00:00
Mark McCaskey
0a02f3bb97 Clean up misc. bits of runtime-core 2020-01-24 15:31:52 -08:00
bors[bot]
ddaaa30e2d
Merge #1172
1172: Share some more code in runtime-core::sys r=MarkMcCaskey a=MarkMcCaskey

This code was partially duplicated


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-22 21:40:23 +00:00
Mark McCaskey
2c45106ae0 Share some more code in runtime-core::sys 2020-01-22 13:34:50 -08:00
bors[bot]
5dfa61e30a
Merge #1170
1170: Add new features to WasiState builder API r=MarkMcCaskey a=MarkMcCaskey

Allows for ergonomic swapping out of stdin, stdout, stderr as well as
a new PreopenDir sub-builder which enables for user control over the
permissions that the directory is preopened with.

This PR includes breaking changes to the pubilc API.

TODO:
- [x] Add doc examples of using the new sub-builder
- [x] Discuss and maybe readd removed broken API with `deprecated` attributes on them

# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-01-22 01:09:30 +00:00
Mark McCaskey
4862828165 Clean up and add another example 2020-01-21 17:06:50 -08:00
Mark McCaskey
19ea53b86e
Update lib/wasi/src/state/builder.rs
Co-Authored-By: nlewycky <nick@wasmer.io>
2020-01-21 16:57:33 -08:00
Mark McCaskey
7ea6943af1 Update example in doc to use new preopened dir builder 2020-01-21 16:33:49 -08:00
Mark McCaskey
d1cadf98e1 Add new features to WasiState builder API
Allows for ergonomic swapping out of stdin, stdout, stderr as well as
a new PreopenDir sub-builder which enables for user control over the
permissions that the directory is preopened with.

This PR includes breaking changes to the pubilc API.
2020-01-21 16:23:30 -08:00
bors[bot]
0157596021
Merge #1150
1150: doc(readme) Add `brew install wasmer` r=MarkMcCaskey a=Hywan

Depends on https://github.com/Homebrew/homebrew-core/pull/49045. Wait until it's merged.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-21 18:13:09 +00:00
bors[bot]
b73f26124a
Merge #1161
1161: Require that imported functions must be `Send` r=MarkMcCaskey a=MarkMcCaskey

resolves #1074 

# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+MarkMcCaskey@users.noreply.github.com>
2020-01-21 17:48:10 +00:00
Mark McCaskey
f1db4aec1d
Merge branch 'master' into fix/imported-functions-must-be-send 2020-01-21 09:47:46 -08:00
bors[bot]
caa651cf32
Merge #1140
1140: Use blake3 instead of blake2_simd 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

Blake3 has a much faster hashing rate than Blake2/Blake2b_simd. This PR updates wasmer to use it as the default hashing algorithm.

More info here: https://www.infoq.com/news/2020/01/blake3-fast-crypto-hash/

<!-- 
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>
2020-01-20 22:17:11 +00:00
Syrus
0d2d4369aa Fixed lint issue 2020-01-20 14:15:02 -08:00
Syrus Akbary
5293bad793
Merge branch 'master' into blake3 2020-01-20 14:13:27 -08:00
bors[bot]
d73d8374a4
Merge #1129
1129: Standard exception types for singlepass backend. r=losfair a=losfair



Co-authored-by: losfair <zhy20000919@hotmail.com>
2020-01-20 18:22:50 +00:00
losfair
1b5d9f2a21 Update changelog. 2020-01-21 02:21:55 +08:00
losfair
526611676b Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-21 02:20:37 +08:00
losfair
dc216364be Fix backend string type. 2020-01-21 02:07:32 +08:00
bors[bot]
328d53895f
Merge #1168
1168: doc(runtime-c-api) Improve documentation of the `instance`, `error` and `export` modules r=syrusakbary a=Hywan

Daily doc', that turned to be an obsession. The entire `instance`, `error` modules are fully documented. The `exports` module's documentation have been improved too.

This PR also contains some “bug fixes” when `instance` pointers are null for instance (in this case, we do nothing or we return `void`).

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-20 17:58:15 +00:00
losfair
74eb11352a Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-21 01:10:40 +08:00
losfair
16dee04d22 Add aarch64-specific failure excludes. 2020-01-21 01:10:14 +08:00
Ivan Enderlin
13f87b1618 chore(runtime-c-api) Update C/C++ headers. 2020-01-20 15:59:30 +01:00
Ivan Enderlin
8283b6d0da doc(runtime-c-api) Improve documentation of wasmer_instance_destroy. 2020-01-20 15:58:27 +01:00