797 Commits

Author SHA1 Message Date
losfair
74eb11352a Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-21 01:10:40 +08:00
Mark McCaskey
430524ce51 Prepare for 0.13.1 release 2020-01-16 14:07:18 -08:00
Mark McCaskey
3c996bc821 Prepare for 0.13.0 release 2020-01-15 11:09:47 -08:00
losfair
d3ebb5fbc8 Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-16 03:01:21 +08:00
losfair
1b3e679bf0 Merge remote-tracking branch 'origin/master' into feature/unified-exceptions 2020-01-16 02:59:56 +08:00
bors[bot]
12f1f2d8a8
Merge #1143
1143: Set backend_id to static str 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

As per feedback in #1099, set backend_id to static str.

<!-- 
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: Syrus <me@syrusakbary.com>
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-15 18:32:01 +00:00
Mark McCaskey
75d7f106f2 Update remaining locations to use a &'static str for backend 2020-01-15 10:28:06 -08:00
Ivan Enderlin
7156056ac3 fix(bin) Remove a warning for unreachable code.
The `panic!` statement is indeed unreachable for regular usages, but
not for wrong feature configurations. Allowing `unreachable_code` to
avoid a warning.
2020-01-15 14:08:04 +01:00
Syrus
273a6307f7 Use &’static str for backend 2020-01-15 14:04:42 +01:00
Mark McCaskey
39025d0205 Check if printing to a terminal for color output 2020-01-14 13:50:48 -08:00
Mark McCaskey
286e5db370 Remove vestigial debug features from various crates 2020-01-14 13:03:19 -08:00
Mark McCaskey
12f7416a85 Update logging to use log, add command line flag to toggle it 2020-01-14 12:41:46 -08: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
losfair
9e2080def1 Run cargo fmt. 2020-01-10 02:54:50 +08:00
losfair
8bf0c1966c Push code version for non-WASI entrypoints. 2020-01-10 02:53:31 +08: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
Mark McCaskey
d3d720babd Improve formatting of error messages we display from wabt 2020-01-06 15:30:30 -05:00
Syrus
24a9814ba6 Remove unused imports 2019-12-20 20:47:03 -08:00
Syrus
afcd1d5b68 Fixed wasmer calls 2019-12-20 20:46:04 -08:00
Syrus
294cc28135 Move inline breakpoint outside of runtime backend
There was some code smell leaking inline breakpoint implementation into the runtime core backend instead of the compiler itself
2019-12-20 18:26:56 -08:00
Nick Lewycky
32ed6f2c10 Enable non-trapping float to int conversions by default. 2019-12-20 16:20:58 -08:00
Mark McCaskey
6a74b7e994 Prepare for 0.12.0 release 2019-12-18 17:24:29 -05:00
Mark McCaskey
caa75fa157 Merge branch 'master' into wat 2019-12-18 15:42:14 -05:00
Mark McCaskey
7d77511ad5 Additional clean up, cargo update to fix merge issue 2019-12-18 15:24:42 -05:00
Mark McCaskey
4539ef44d0 Rename to experimental-io-devices and clean up for release 2019-12-18 14:10:54 -05:00
Patrick Ventuzelo
c578150e1c
Merge branch 'master' into ventuzelo/fix-857-panic-loader-parameter 2019-12-11 10:45:55 +01:00
Syrus Akbary
92fcce2c21
Merge branch 'master' into feature/invoke-arg-parsing 2019-12-10 17:55:24 -08:00
Mark McCaskey
bc8d5a542c Return parse error strings rather than printing them in invoke parse 2019-12-10 17:37:22 -08:00
Mark McCaskey
0a9c41b313 Integrate Ivan's arg parsing code into --invoke
Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2019-12-10 17:12:35 -08:00
Syrus Akbary
8e4fdcf5f1
Update src/bin/wasmer.rs 2019-12-10 16:10:33 -08:00
Syrus Akbary
a52fadf54e
Improve wasmer invoke function 2019-12-10 16:07:14 -08:00
bors[bot]
63a588780c
Merge #1033
1033: Improve default compiler story for wasmer cli r=MarkMcCaskey a=MarkMcCaskey

This PR needs the following to be ready to ship:

- [x] Verified make commands are still fine
- [x] Verified this doesn't do anything bad in CI

This PR adds:
- compile_error if no backend is specified in wasmer.rs
- readds clif as the default
- improves the error message saying "specified backend not found" to include the name of the backend that it couldn't find

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <5770194+markmccaskey@users.noreply.github.com>
2019-12-06 19:55:04 +00:00
Mark McCaskey
0580a117da
Improve compile error message when no backends set 2019-12-06 11:54:33 -08:00
bors[bot]
b336726177
Merge #1036
1036: Add experimental invoke support to WASI in wasmer cli r=MarkMcCaskey a=MarkMcCaskey

Resolves #1024 

This PR also does a bit of code clean up

# Review

- [ ] 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>
2019-12-06 18:37:16 +00:00
Mark McCaskey
d2f5690cae
Improve warning message when invoking WASI functions 2019-12-06 10:36:45 -08:00
Mark McCaskey
448faafd0d Apply cargo fmt after GitHub merge 2019-12-06 10:28:20 -08:00
Mark McCaskey
d237bda463
Merge branch 'master' into fix/default-compiler-wasmer-cli 2019-12-06 10:27:53 -08:00
Mark McCaskey
e32a1a6378 Update from feedback; add changelog entry 2019-12-06 10:24:43 -08:00
Ivan Enderlin
72c8b66a08 Merge branch 'fix-wasi-get-version' of github.com:Hywan/wasmer into fix-wasi-get-version 2019-12-06 14:02:49 +01:00
Ivan Enderlin
f8385e2757 feat(bin) wasmer requires a strict WASI version detection. 2019-12-06 14:02:02 +01:00
Nick Lewycky
8d3cf874cd Add the ability to pass backend specific options through CompilerConfig.
Use this to replace wasmer_llvm_backend::GLOBAL_OPTIONS.
2019-12-05 12:13:51 -08:00
Mark McCaskey
5da98caf83 Merge branch 'master' into wat 2019-12-04 17:17:00 -08:00
Mark McCaskey
356720efd2 Add experimental invoke support to WASI in wasmer cli 2019-12-02 16:53:15 -08:00
Mark McCaskey
ab111443be Improve default compiler story for wasmer cli
This commit reenables the clif compiler as the default for wasmer cli,
updates an error message, and adds a compile_error if no backends are enabled.
2019-12-02 15:50:34 -08:00
Asami Doi
fd0df9946b Add "auto" backend to change the backend depending on the wasm file size 2019-11-27 20:04:35 +09:00
Mark McCaskey
bb1e7a8d78 Prepare for 0.11.0 release 2019-11-22 11:18:06 -08:00