4627 Commits

Author SHA1 Message Date
Ivan Enderlin
7b6d8993e1 chore(runtime-c-api) Update C/C++ headers. 2020-01-09 10:17:34 +01:00
Ivan Enderlin
038fbc287d Merge branch 'feat-runtime-c-api-deprecated' of github.com:Hywan/wasmer into feat-runtime-c-api-deprecated 2020-01-09 10:16:41 +01:00
Ivan Enderlin
67b684ac85 feat(runtime-c-api) Improve DEPRECATED compatibility.
Clang can emulate GNUC or MSVC behaviors. So instead of detecting
whether Clang is used to compile the code, it's better to detect the
targeted features are available.

Code proposed by @nlewycky, thanks!
2020-01-09 10:13:22 +01:00
bors[bot]
8e6015f231
Merge #1124
1124: Update wapm submodule to 0.4.2 r=MarkMcCaskey a=MarkMcCaskey

Uses the updated wapm from the new release https://github.com/wasmerio/wapm-cli/releases/tag/0.4.2 which fixes a bug

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-08 18:42:01 +00:00
Mark McCaskey
34bf886883 Update wapm submodule to 0.4.2 2020-01-08 13:37:29 -05:00
Ivan Enderlin
c23eca25c0
Merge branch 'master' into feat-runtime-c-api-deprecated 2020-01-08 15:50:50 +01:00
Ivan Enderlin
4f691dde17 chore(runtime-c-api) Update headers. 2020-01-08 15:25:48 +01:00
Ivan Enderlin
b31a3dcdec feat(runtime-c-api) Define the DEPRECATED macro.
This PR defines a cross-compiler `DEPRECATED(message)` macro. It must
be used as follows in Rust:

```rust
/// This is a documentation.
/// cbindgen:prefix=DEPRECATED(This is a deprecation message.")
pub extern "C" fn wasmer_foo() -> c_uint {
    42
}
```

It will generate the following C header:

```c
/**
 * This is a documentation.
 */
DEPRECATED("This is a deprecation message.")
unsigned int wasmer_foo();
```

And once this code is used by a C compiler, it will print something
like this (example from Clang):

```
…/test.c:…:…: error: 'wasmer_foo' is deprecated: This is a deprecation message. [-Werror,-Wdeprecated-declarations]
    unsigned int x = wasmer_foo();
                     ^
…/wasmer.h:…:…: note: 'wasmer_foo' has been explicitly marked deprecated here
DEPRECATED("This is a deprecation message.")
^
…/wasmer.h:…:…: note: expanded from macro 'DEPRECATED'
```

This is required for further deprecations.
2020-01-08 15:02:57 +01:00
Mark McCaskey
078242b55b Add test for ImportObject's allow_missing_functions 2020-01-07 12:04:50 -05:00
Syrus Akbary
61cde95698
Merge pull request #1102 from wasmerio/dependabot/cargo/rayon-1.3.0
Bump rayon from 1.2.1 to 1.3.0
2020-01-07 16:38:39 +01:00
Syrus Akbary
3e5545f4c2
Merge pull request #1105 from wasmerio/dependabot/cargo/smallvec-1.1.0
Bump smallvec from 0.6.13 to 1.1.0
2020-01-07 16:38:27 +01:00
Syrus Akbary
b60c22937a
Merge pull request #1112 from wasmerio/dependabot/cargo/structopt-0.3.7
Bump structopt from 0.3.5 to 0.3.7
2020-01-07 16:38:13 +01:00
Syrus Akbary
0a8cfa5f97
Merge pull request #1114 from wasmerio/dependabot/cargo/blake2b_simd-0.5.10
Bump blake2b_simd from 0.5.9 to 0.5.10
2020-01-07 16:38:03 +01:00
Syrus Akbary
f7ce59db0f
Merge pull request #1115 from wasmerio/dependabot/cargo/generational-arena-0.2.7
Bump generational-arena from 0.2.6 to 0.2.7
2020-01-07 16:37:49 +01:00
Syrus
d544f5a80f Run formatting 2020-01-07 16:14:58 +01:00
Syrus
ee6949bcb4 Add checks back into makefile 2020-01-07 16:13:33 +01:00
Syrus
59945a8875 Use detault 2020-01-07 16:13:33 +01:00
Syrus
3b9cdc396d Recovered deleted tests 2020-01-07 16:13:33 +01:00
Syrus
63f1d6b7ba Fixed path variable name 2020-01-07 16:13:33 +01:00
Syrus
f967770ccf Fixed linting 2020-01-07 16:13:33 +01:00
Syrus
720d4ec99c Fix checks on binary 2020-01-07 16:13:33 +01:00
Syrus
8cff1adf5c Fix wasmer binary 2020-01-07 16:12:39 +01:00
Syrus
d36d883528 Fix lint 2020-01-07 16:12:39 +01:00
Syrus
e57677b63f Make cranelift optional for middleware 2020-01-07 16:12:39 +01:00
Syrus
ac0c5c93ce Fixed lint 2020-01-07 16:12:39 +01:00
Syrus
5d2ea93a89 Fixed changelog link 2020-01-07 16:12:39 +01:00
Syrus
0cb3df256d Removed unnecessary checks 2020-01-07 16:12:39 +01:00
Syrus
71be5bea16 Improved syntax 2020-01-07 16:12:39 +01:00
Syrus
f3b9ecbaea Remove backend specific features from root Cargo 2020-01-07 16:12:39 +01:00
Syrus
18421e3623 Make all tests pass 2020-01-07 16:12:39 +01:00
Syrus
d7154fe791 Remove Backend dependency 2020-01-07 16:12:39 +01:00
Syrus
d4e964519d Move requires pre validation into the ModuleCodeGenerator 2020-01-07 16:10:46 +01:00
Syrus
303d44cb0f Remove backend code 2020-01-07 16:10:46 +01:00
Syrus Akbary
94bcea909b
Merge pull request #1119 from Hywan/doc-runtime-c-api-typo
doc(runtime-c-api) Fix a typo.
2020-01-07 14:42:36 +01:00
Ivan Enderlin
0274668675 doc(runtime-c-api) Fix a typo. 2020-01-07 14:21:50 +01:00
dependabot-preview[bot]
8f694dab54
Bump rayon from 1.2.1 to 1.3.0
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.2.1...rayon-core-v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 20:59:17 +00:00
dependabot-preview[bot]
6e52685b64
Bump blake2b_simd from 0.5.9 to 0.5.10
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd) from 0.5.9 to 0.5.10.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases)
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.9...0.5.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 20:59:17 +00:00
dependabot-preview[bot]
37a3a15ea8
Bump generational-arena from 0.2.6 to 0.2.7
Bumps [generational-arena](https://github.com/fitzgen/generational-arena) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/fitzgen/generational-arena/releases)
- [Changelog](https://github.com/fitzgen/generational-arena/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fitzgen/generational-arena/compare/0.2.6...0.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 20:59:14 +00:00
dependabot-preview[bot]
f134f01983
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-06 20:59:13 +00:00
dependabot-preview[bot]
e6dd79a2fb
Bump structopt from 0.3.5 to 0.3.7
Bumps [structopt](https://github.com/TeXitoi/structopt) from 0.3.5 to 0.3.7.
- [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.5...v0.3.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 20:59:11 +00:00
bors[bot]
9cf97aa02b
Merge #1117
1117: Improve formatting of error messages we display from wabt r=MarkMcCaskey a=MarkMcCaskey

Resolves #1107 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-06 20:38:28 +00:00
Mark McCaskey
d3d720babd Improve formatting of error messages we display from wabt 2020-01-06 15:30:30 -05:00
Syrus Akbary
d408831ed6
Merge pull request #1103 from wasmerio/dependabot/cargo/parking_lot-0.10.0
Bump parking_lot from 0.9.0 to 0.10.0
2019-12-30 11:30:11 +01:00
dependabot-preview[bot]
1e6149ed94
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>
2019-12-23 07:38:11 +00:00
bors[bot]
afc3363e35
Merge #1101
1101: Add MIT license to crates that were missing it r=syrusakbary a=repi

Ran into a few crates in this repo with our license scanner that didn't have any license attached to them.

Added MIT to be consistent with the other crates. Please adjust if not correct.

Co-authored-by: Johan Andersson <repi@repi.se>
2019-12-22 16:14:42 +00:00
Johan Andersson
81f879565d Add MIT license to crates that were missing it
Ran into a few crates in this repo with our license scanner that didn't have any license attached to them.

Added MIT to be consistent with the other crates. Please adjust if not correct.
2019-12-22 12:28:33 +01:00
bors[bot]
f2f1a08e07
Merge #1100
1100: Fix unused import warning, deny more warnings. r=syrusakbary a=nlewycky



Co-authored-by: Nick Lewycky <nick@wasmer.io>
2019-12-22 03:19:41 +00:00
Nick Lewycky
1cffb90fea Fix unused import warning, deny more warnings. 2019-12-21 14:35:43 -08:00
bors[bot]
7390372eb6
Merge #1097
1097: Move inline breakpoint outside of runtime backend 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
There was some code smell leaking inline breakpoint implementation into the runtime core backend instead of the compiler itself. This PR fixes it.

<!-- 
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>
2019-12-21 05:13:50 +00:00
Syrus
ad82beffb4 Fixed tests 2019-12-20 21:11:55 -08:00