4653 Commits

Author SHA1 Message Date
Mark McCaskey
430524ce51 Prepare for 0.13.1 release 2020-01-16 14:07:18 -08:00
bors[bot]
49bb849df2
Merge #1156
1156: Added release badge to wasmex in the README r=Hywan a=tessi

# Description

Added the release badge for wasmex to our README. 

This time attempting not to break the layout ;)

<img width="917" alt="Screenshot 2020-01-16 at 13 13 42" src="https://user-images.githubusercontent.com/206108/72524372-0d575880-3862-11ea-986d-b0aeeb6a82d4.png">


# Review

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

I guess this does not need a CHANGELOG entry 🤔 


Co-authored-by: Philipp Tessenow <philipp@tessenow.org>
2020-01-16 15:09:00 +00:00
Philipp Tessenow
5a5643f6ac Added release badge to wasmex in the README 2020-01-16 13:11:53 +01:00
Syrus Akbary
59c818863a
Merge pull request #1155 from Hywan/doc-runtime-c-api-daily
doc(runtime-c-api) Daily documentation improvements
2020-01-16 12:46:26 +01:00
Ivan Enderlin
96f96f5d20 chore(runtime-c-api) Update C/C++ headers. 2020-01-16 12:31:43 +01:00
Ivan Enderlin
d42bbb1f06 doc(runtime-c-api) Improve fragment readability in Doxygen. 2020-01-16 12:31:13 +01:00
Ivan Enderlin
44a80dc4a0 doc(runtime-c-api) Improve documentation of wasmer_instantiate. 2020-01-16 12:30:26 +01:00
Ivan Enderlin
13800872ff doc(runtime-c-api) Improve documentation of wasmer_instance_context_t. 2020-01-16 12:29:33 +01:00
Ivan Enderlin
88ca11628a doc(runtime-c-api) Improve documentation of wasmer_instance_t. 2020-01-16 12:29:09 +01:00
Ivan Enderlin
798557367a doc(runtime-c-api) Improve documentation of wasmer_validate. 2020-01-16 12:28:42 +01:00
Syrus Akbary
a4c13c8d18
Added docs to the language table 2020-01-16 11:59:41 +01:00
Syrus Akbary
677a399ad1
Merge pull request #1154 from Hywan/doc-assets-languages-elixir-reduce
doc(assets) Reduce Elixir logo to ~25px
2020-01-16 11:18:08 +01:00
Ivan Enderlin
08352b449a doc(assets) Reduce Elixir logo to ~25px. 2020-01-16 10:26:34 +01:00
bors[bot]
9ae83981be
Merge #1153
1153: Added Wasmex, an Elixir language integration r=MarkMcCaskey a=tessi

# Description

Thanks for creating wasmer. I missed a language integration and, thus, implemented it. This PR adds [Wasmex](https://github.com/tessi/wasmex), an integration into the Elixir language, to the list of supported languages in the README.

The implementation "borrows" some ideas (esp on the Rust side and documentation) of your language integrations. I hope this is OK with you. If not, tell me :)

# Review

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


Co-authored-by: Philipp Tessenow <philipp@tessenow.org>
2020-01-16 00:50:56 +00:00
Philipp Tessenow
02c142200a
added link to the PR to CHANGELOG.md 2020-01-16 01:35:43 +01:00
Philipp Tessenow
b60c0fbad8 Added Wasmex, an Elixir language integration 2020-01-16 01:31:20 +01:00
bors[bot]
16c2e7fda4
Merge #1152
1152: Update clif-backend to use new published crates r=MarkMcCaskey a=MarkMcCaskey

With help from @nlewycky, this updates clif-backend to use the published forks



Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-15 20:42:06 +00:00
Mark McCaskey
bb794598e9 Update clif-backend to use new published crates 2020-01-15 12:11:02 -08:00
bors[bot]
dbd8637e53
Merge #1151
1151: Prepare for 0.13.0 release r=MarkMcCaskey a=MarkMcCaskey


# Review

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


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-15 19:23:11 +00:00
Mark McCaskey
3c996bc821 Prepare for 0.13.0 release 2020-01-15 11:09:47 -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
bors[bot]
606ed7a848
Merge #1149
1149: fix(bin) Remove a warning for unreachable code. r=MarkMcCaskey a=Hywan

The `panic!` statement is indeed unreachable for regular usages, but
not for wrong feature configurations. Allowing `unreachable_code` to
avoid a warning.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-15 17:28:03 +00: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
bors[bot]
6514e57b6f
Merge #760
760: Add Publish_Docs stage, make it push to a fake gh-pages branch for testing whenever master is updated. r=syrusakbary a=nlewycky

bors r-

Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: Syrus <me@syrusakbary.com>
Co-authored-by: Azure Pipelines <azuredevops@microsoft.com>
2020-01-15 12:58:13 +00:00
Syrus
e84753eec2 Removed circleci-clean from makefile 2020-01-15 13:57:08 +01:00
Syrus
a99d0c209d Fixed based on feedback 2020-01-15 13:21:14 +01:00
Syrus
02dc47297f Changed from rust to crates 2020-01-15 13:21:05 +01:00
Syrus Akbary
2a2a3585d7
Merge pull request #1148 from Hywan/fix-runtime-c-api-error-message
fix(runtime-c-api) Fix error message.
2020-01-15 12:53:05 +01:00
Ivan Enderlin
7a16828e6e fix(runtime-c-api) Fix error message. 2020-01-15 12:50:18 +01:00
Syrus
991a777f72 Only commit if there are files to commit 2020-01-15 12:43:58 +01:00
Syrus
84beb446d9 Make docs only build and publish on master 2020-01-15 12:41:21 +01:00
Syrus
5a6afe4e68 Fixed makefile 2020-01-15 12:32:27 +01:00
Syrus
943dc7d868 Fixed mkdir 2020-01-15 11:04:00 +01:00
Syrus
d343cd1d2d Improved C-API documentation links 2020-01-15 11:01:48 +01:00
Syrus
47d38c9759 Trying to debug the issue 2020-01-15 11:01:22 +01:00
Syrus
ab77433128 Fixed redirect url 2020-01-15 10:45:47 +01:00
Syrus
892c95ef57 Added git user config to pass commit 2020-01-15 09:56:48 +01:00
bors[bot]
50acd8ba98
Merge #1133
1133: feat(runtime-c-api) Implement `wasmer_trap` r=Hywan a=Hywan

Idea is to provide an API to get fallible host function by calling `wasmer_trap` to run the Wasmer trapping API.

This is probably the easiest solution to not break the existing API, and not add a lot of complexity in the code.

Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
2020-01-15 07:50:32 +00:00
Ivan Enderlin
fb06ee33e3 test(runtime-c-api) Rename wasmer_import_trap to wasmer_trap. 2020-01-15 08:47:52 +01:00
Ivan Enderlin
f4ae606006 doc(changelog) Update #1133. 2020-01-15 08:46:12 +01:00
Ivan Enderlin
ce3fb49b21 Merge branch 'master' into feat-runtime-c-api-import-trap 2020-01-15 08:44:56 +01:00
Ivan Enderlin
cd16a7d1a7 chore(runtime-c-api) Update C/C++ headers. 2020-01-15 08:42:17 +01:00
Ivan Enderlin
bcbde69694 doc(runtime-core) Fix a typo. 2020-01-15 08:41:37 +01:00
Ivan Enderlin
4cdf868a0b doc(runtime-c-api) Explain why code is unreachable in wasmer_trap. 2020-01-15 08:40:36 +01:00
Ivan Enderlin
c0b439e66a feat(runtime-c-api) Rename wasmer_import_trap to wasmer_trap. 2020-01-15 08:37:20 +01:00
bors[bot]
d350613f0c
Merge #1147
1147: Update logging to use `log`, add command line flag to toggle it r=MarkMcCaskey a=MarkMcCaskey

This PR:
- ports our logging to the [`log`](https://crates.io/crates/log) crate which is the de-facto standard way to do logging in Rust (it defines a trait which logging backends can implement (we can also implement our own at a later date using these traits)).  Another benefit of using the standard logging utilities is that we can now allow users of our libraries to filter and display log messages from Wasmer in a more natural way.
- adds a command line flag to enable/disable logging
- updates the `debug` and `trace` features to pass the correct static toggles to the `log` crate; judging by the `log` documentation these features need to only be set once
- copies and slightly modifies our `fern` configuration from wapm
- updates the makefile so that `make release` compiles out all log statements
- TODO: update CI to not print with color (may not be necessary actually)

# Review

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


Here's some example output:

```
[1579035881.809 DEBUG wasmer_wasi::state] wasi::fs::inodes
[1579035881.809 DEBUG wasmer_wasi::state] wasi::fs::preopen_dirs
[1579035881.809 DEBUG wasmer_wasi::state] wasi::fs::mapped_dirs
[1579035881.809 DEBUG wasmer_wasi::state] wasi::fs::end
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::fd_prestat_get: fd=3
[1579035881.810 DEBUG wasmer_wasi::state] in prestat_fd Fd { rights: 536870911, rights_inheriting: 536870911, flags: 0, offset: 0, open_flags: 1, inode: Index { index: 3, generation: 0 } }
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::fd_prestat_dir_name: fd=3, path_len=2
[1579035881.810 DEBUG wasmer_wasi::syscalls] => result: "/"
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::fd_fdstat_get: fd=3, buf_ptr=1048536
[1579035881.810 DEBUG wasmer_wasi::state] fdstat: Fd { rights: 536870911, rights_inheriting: 536870911, flags: 0, offset: 0, open_flags: 1, inode: Index { index: 3, generation: 0 } }
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::fd_prestat_get: fd=4
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::environ_sizes_get
[1579035881.810 DEBUG wasmer_wasi::syscalls] env_var_count: 0, env_buf_size: 0
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::args_sizes_get
[1579035881.810 DEBUG wasmer_wasi::syscalls] => argc=3, argv_buf_size=92
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::args_get
[1579035881.810 DEBUG wasmer_wasi::syscalls] => args:
                   0: /Users/mark/.wasmer/globals/wapm_packages/mark/rust-example@0.1.11/wasi-example.wasm
                   1: -e
                   2: HQ+
[1579035881.810 DEBUG wasmer_wasi::syscalls] wasi::args_sizes_get
[1579035881.811 DEBUG wasmer_wasi::syscalls] => argc=3, argv_buf_size=92
[1579035881.811 DEBUG wasmer_wasi::syscalls] wasi::args_get
[1579035881.811 DEBUG wasmer_wasi::syscalls] => args:
                   0: /Users/mark/.wasmer/globals/wapm_packages/mark/rust-example@0.1.11/wasi-example.wasm
                   1: -e
                   2: HQ+
[1579035881.811 DEBUG wasmer_wasi::syscalls] wasi::random_get buf_len: 16
[1579035881.811 DEBUG wasmer_wasi::syscalls] wasi::fd_write: fd=1
Hello, world!

[1579035881.811 DEBUG wasmer_wasi::syscalls] wasi::fd_write: fd=1
HQ+
```


Co-authored-by: Mark McCaskey <mark@wasmer.io>
2020-01-14 21:53:54 +00: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