Commit Graph

2796 Commits

Author SHA1 Message Date
bors[bot]
263d592bfc Merge #374
374: Cleanup build warnings imports and unnecessary unsafe r=syrusakbary a=bjfish



Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-04-25 23:00:52 +00:00
Syrus Akbary
1ed4142333
Merge branch 'master' into feature/cleanup-imports-unsafe 2019-04-25 16:00:27 -07:00
Syrus Akbary
750aafd7ca
Fix nightly on macos 2019-04-25 15:59:46 -07:00
Syrus Akbary
9dd5eca3cc
Merge pull request #395 from wasmerio/fix/revert-curl-command-in-ci
revert curl command to not ask for tls 1.2 in ci
2019-04-25 15:12:05 -07:00
Mark McCaskey
65e6f2582f
revert curl command to not ask for tls 1.2 in ci 2019-04-25 15:09:01 -07:00
bors[bot]
e86e542da7 Merge #392
392: Remove unused function memory_offset_addr r=syrusakbary a=bjfish



Co-authored-by: Brandon Fish <brandon.j.fish@gmail.com>
2019-04-25 21:45:25 +00:00
bors[bot]
beae6f5d3d Merge #390
390: pin wapm version r=MarkMcCaskey a=xmclark

This PR pins the version of wapm-cli that gets distributed during releases. We can re-create the release, and will always install the same version of wapm-cli (until we update on a new wapm-cli release). 

Co-authored-by: Mackenzie Clark <mackenzie.a.z.c@gmail.com>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-04-25 21:31:14 +00:00
Mark McCaskey
8eb6a0a53e
revert curl command change 2019-04-25 13:47:58 -07:00
Mackenzie Clark
3998c9ec17 remove zbox because wasmer will not build on windows nightly 2019-04-25 12:45:45 -07:00
Mark McCaskey
6ff24a8aa1
Update CHANGELOG.md 2019-04-25 11:01:46 -07:00
Mackenzie Clark
9ab7199fe5
Merge branch 'master' into feature/cleanup-imports-unsafe 2019-04-24 08:37:06 -07:00
Mackenzie Clark
4d32fd4524
Merge branch 'master' into fix/pin-wapm-version 2019-04-24 08:30:19 -07:00
Brandon Fish
389c6a015d Remove unused function memory offset addr 2019-04-24 02:00:07 -05:00
Syrus Akbary
9f8bbb72cb
Merge pull request #391 from Cretezy/patch-1
Add pkg-config & libssl-dev to Linux dependencies
2019-04-23 18:39:19 -07:00
Charles Crete
1959ef7988
Add libssl-dev to dependencies 2019-04-23 21:26:19 -04:00
Charles Crete
fccf46d320
Add pkg-config to Linux dependencies 2019-04-23 21:25:12 -04:00
Mackenzie Clark
b1ece9dc41 add the other correct usage of rustup install 2019-04-23 13:53:48 -07:00
Mackenzie Clark
24d5d2d8a7 install rust with new https curl 2019-04-23 13:43:40 -07:00
Mackenzie Clark
7494e2c8f2 update config to update the new git submodule 2019-04-23 13:04:12 -07:00
Mackenzie Clark
5881f54682 Revert "pin wapm version"
This reverts commit f2130fc227.
2019-04-23 13:00:00 -07:00
Mackenzie Clark
f372fddb9e add wapm-cli as git submodule at the v0.1.0 tag commit 2019-04-23 12:59:55 -07:00
Mackenzie Clark
f2130fc227 pin wapm version 2019-04-23 12:06:55 -07:00
Syrus Akbary
64034f4047
Merge pull request #388 from styfle/patch-1
Update README.md
2019-04-23 08:07:20 -07:00
Steven
85530525b0
Update README.md 2019-04-23 10:37:35 -04:00
Syrus Akbary
84e68fd1bd
Merge pull request #386 from wasmerio/fix/install-note
Add comma to message in install.sh
2019-04-22 23:38:17 -07:00
Brandon Fish
017d52cd8f
Add comma to message in install.sh 2019-04-22 22:37:12 -05:00
bors[bot]
a96333bbd6 Merge #384
384: Added WASI integration tests r=syrusakbary a=syrusakbary

Added WASI integration tests

Co-authored-by: Syrus <me@syrusakbary.com>
2019-04-23 03:02:08 +00:00
Syrus
da54cabafa Updated version to 0.4.0 2019-04-22 18:06:37 -07:00
Syrus
3a36768934 Added cowsay.wasm file 2019-04-22 18:04:00 -07:00
Syrus Akbary
486c43fd2f
Merge pull request #385 from wasmerio/feature/better-tar-install
Improved installer
2019-04-22 17:32:18 -07:00
Syrus Akbary
15d7056972
Merge branch 'master' into feature/better-tar-install 2019-04-22 17:27:25 -07:00
Syrus
fef38200a5 Fixed circle config 2019-04-22 17:25:00 -07:00
Syrus
addd81da19 Improved build 2019-04-22 17:22:20 -07:00
Syrus
2a1df0fdf1 Added WASI integration tests 2019-04-22 17:06:42 -07:00
bors[bot]
f104b2c324 Merge #383
383: Hook up wasi exit code to wasmer cli r=lachlansneff a=lachlansneff

Test by running:

```
> target/release/wasmer run examples/exit.wat
> echo $?
```

should echo "7".

Fixes (at least the exit code part) of #361.

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-23 00:03:40 +00:00
Lachlan Sneff
53c576fe48 remove run_instance function 2019-04-22 16:54:58 -07:00
Lachlan Sneff
c8937c4f26 Update changelog 2019-04-22 16:49:40 -07:00
Lachlan Sneff
2038eec4ae Merge branch 'feature/wasi-return-exit-code' of github.com:wasmerio/wasmer into feature/wasi-return-exit-code 2019-04-22 16:48:47 -07:00
Lachlan Sneff
260c0acec6 Format wasmer.rs 2019-04-22 16:48:44 -07:00
Lachlan Sneff
9c825509c8
Merge branch 'master' into feature/wasi-return-exit-code 2019-04-22 16:48:24 -07:00
Lachlan Sneff
76f4798436 Hook up wasi exit code to wasmer cli 2019-04-22 16:45:36 -07:00
bors[bot]
baae2b3826 Merge #382
382: reduce suggested backends to the ones compiled into wasmer r=MarkMcCaskey a=MarkMcCaskey

resolves #380 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-04-22 23:15:33 +00:00
Mark McCaskey
e8b2660eb7 greatly simplify logic -- thanks Lachlan! 2019-04-22 16:14:12 -07:00
Mark McCaskey
b3dacbfc3c
Merge branch 'master' into feature/improve-backend-error-message 2019-04-22 16:09:08 -07:00
Mark McCaskey
015bf78953 update changelog 2019-04-22 16:06:22 -07:00
Mark McCaskey
51cf0d1be7 reduce suggested backends to the ones compiled into wasmer 2019-04-22 16:03:04 -07:00
bors[bot]
b7f98c8401 Merge #381
381: Hook up error propagation r=lachlansneff a=lachlansneff

You can now retrieve the error from a panicking or error-returning imported function.

Example:

```rust
#[derive(Debug)]
struct ExitCode {
    code: i32,
}

fn do_panic(_ctx: &mut Ctx) -> Result<i32, ExitCode> {
    Err(ExitCode { code: 42 })
}

// This wasm functions calls `do_panic`.
let foo: Func<(), i32> = instance.func(...)?;

let result = foo.call();

println!("result: {:?}", result);

if let Err(RuntimeError::Error { data }) = result {
    if let Ok(exit_code) = data.downcast::<ExitCode>() {
        println!("exit code: {:?}", exit_code);
    }
}
```

outputs:

```
result: Err(unknown error)
exit code: ExitCode { code: 42 }
```

Co-authored-by: Lachlan Sneff <lachlan.sneff@gmail.com>
2019-04-22 22:55:25 +00:00
Lachlan Sneff
ff9de181f1 Add error propagation test 2019-04-22 15:53:21 -07:00
Lachlan Sneff
14325c975e Rename internal enum to make less confusing 2019-04-22 15:36:47 -07:00
Lachlan Sneff
aa9cd84085 Update changelog 2019-04-22 15:17:47 -07:00