4975 Commits

Author SHA1 Message Date
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
Ivan Enderlin
f4c8997c6d doc(runtime-c-api) Fix a link. 2020-01-20 15:58:11 +01:00
Ivan Enderlin
11e915f00f test(runtime-c-api) Simplify code. 2020-01-20 15:52:59 +01:00
Ivan Enderlin
df2b93ea81 fix(runtime-c-api) wasmer_instance_context_data_get returns void if instance is null. 2020-01-20 15:52:14 +01:00
Ivan Enderlin
c89f53b6fa doc(runtime-c-api) Improve documentation of wasmer_instance_context_memory. 2020-01-20 15:51:48 +01:00
Ivan Enderlin
32ee93ef73 fix(runtime-c-api) wasmer_instance_context_data_set does nothing if instance is null. 2020-01-20 15:43:14 +01:00
Ivan Enderlin
05dae9ef9d doc(runtime-c-api) Improve documentation of wasmer_instance_context_data_set. 2020-01-20 15:42:50 +01:00
Ivan Enderlin
edf45049e1 doc(runtime-c-api) Improve documentation of wasmer_instance_context_t. 2020-01-20 15:42:27 +01:00
Ivan Enderlin
cb632f3452 feat(runtime-c-api) Do nothing if instance is null in wasmer_instance_exports. 2020-01-20 15:30:00 +01:00
Ivan Enderlin
19627bdb8b doc(runtime-c-api) Improve documentation of wasmer_instance_exports. 2020-01-20 15:29:35 +01:00
Ivan Enderlin
3efd7d1232 doc(runtime-c-api) Improve documentation of wasmer_instance_call. 2020-01-20 15:29:04 +01:00
Ivan Enderlin
076931de91 doc(runtime-c-api) Improve documentation of wasmer_exports_destroy. 2020-01-20 15:28:30 +01:00
Ivan Enderlin
3022a16ec3 doc(runtime-c-api) Improve documentation of wasmer_import_export_value. 2020-01-20 15:28:13 +01:00
Ivan Enderlin
97c25f7862 doc(runtime-c-api) Improve documentation of wasmer_exports_t. 2020-01-20 15:27:50 +01:00
Ivan Enderlin
ee424bbadf doc(runtime-c-api) Improve documentation of wasmer_result_t. 2020-01-20 15:26:52 +01:00
Ivan Enderlin
585f5615cf fix(runtime-c-api) Fix imports, and check for null pointer. 2020-01-20 14:36:45 +01:00
Ivan Enderlin
77ba77446d doc(runtime-c-api) Improve documentation of wasmer_instance_context_get. 2020-01-20 14:36:11 +01:00
Ivan Enderlin
cd3a1064f9 chore(runtime-c-api) Move wasmer_module_import_instantiate to the module module. 2020-01-20 14:25:13 +01:00
Ivan Enderlin
384c501c93 doc(runtime-c-api) Improve error functions' documentations. 2020-01-20 14:23:52 +01:00
Syrus Akbary
9b483d3fe8
Merge pull request #1167 from wasmerio/dependabot/cargo/indexmap-1.3.1
Bump indexmap from 1.3.0 to 1.3.1
2020-01-20 01:05:33 -08:00
Syrus Akbary
366c48a588
Merge pull request #1166 from wasmerio/dependabot/cargo/structopt-0.3.8
Bump structopt from 0.3.7 to 0.3.8
2020-01-20 01:05:25 -08:00
Syrus Akbary
1b6f4c4b0d
Merge pull request #1165 from wasmerio/dependabot/cargo/smallvec-1.1.0
Bump smallvec from 0.6.13 to 1.1.0
2020-01-20 01:05:13 -08:00
dependabot-preview[bot]
1b806c4b2a
Bump indexmap from 1.3.0 to 1.3.1
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/bluss/indexmap/releases)
- [Commits](https://github.com/bluss/indexmap/compare/1.3.0...1.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 08:00:06 +00:00
dependabot-preview[bot]
aff8256eb9
Bump structopt from 0.3.7 to 0.3.8
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/TeXitoi/structopt/releases)
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.7...v0.3.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 07:59:18 +00:00
dependabot-preview[bot]
8721f6c17b
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-20 07:58:42 +00:00
bors[bot]
9589e48712
Merge #1163
1163: Add clippy error checking in lint step r=MarkMcCaskey a=MarkMcCaskey


# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-18 00:19:03 +00:00
Mark McCaskey
d1f049916b Make Clippy Lint a separate step; upgrade all Ubuntu to 18.04 2020-01-17 16:04:57 -08:00
bors[bot]
37765819d7
Merge #1162
1162: Update CODEOWNERS r=MarkMcCaskey a=bjfish

Updating the CODEOWNERS file.

Co-authored-by: Brandon Fish <bjfish@users.noreply.github.com>
2020-01-17 23:49:32 +00:00
Mark McCaskey
5931944a21 Add clippy error checking in lint step 2020-01-17 15:47:45 -08:00