bors[bot]
93032c7360
Merge #609
...
609: Update dependencies r=syrusakbary a=syrusakbary
This PR does:
* Update dependencies (to explicitly use only one version of a package, in all the places we use it)
* Remove explicit dependency on `hashbrown` since it's already adopted as the default algorithm for `HashMap`
* Small fixes on code to use latest versions
Co-authored-by: Syrus <me@syrusakbary.com>
2019-08-01 08:30:08 +00:00
Syrus
70a767e204
Improved exported memory tests
2019-08-01 01:28:11 -07:00
Syrus
2c6fbcba1f
Improved runtime_c_api_tests
2019-08-01 01:27:36 -07:00
Syrus
052ad1381d
Use ordered IndexMap for exports in runtime-core
2019-08-01 01:27:21 -07:00
Syrus
676bccff3c
Tryin gto make c_api_tests verbose mitigates the flaky error
...
Each time `make capi` is run, there is a flaky error:
```
Running target/release/deps/runtime_c_api_tests-3df0f74fcea1252d
running 1 test
test test_c_api ... FAILED
failures:
---- test_c_api stdout ----
Running command: `cmake` arg: Some(".")
output:
status: 0
stdout:
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/syrusakbary/Development/wasmer/lib/runtime-c-api/tests
stderr:
Running command: `make` arg: Some("-Wdev -Werror=dev")
output:
status: 0
stdout:
[ 7%] Built target test-tables
[ 15%] Built target test-module-exports
[ 23%] Built target test-module-imports
[ 30%] Built target test-globals
[ 38%] Built target test-imports
[ 46%] Built target test-module
[ 53%] Built target test-module-serialize
[ 61%] Built target test-memory
[ 69%] Built target test-validate
[ 76%] Built target test-import-function
[ 84%] Built target test-instantiate
[ 92%] Built target test-exports
[100%] Built target test-exported-memory
stderr:
Running command: `make` arg: Some("test")
output:
status: 2
stdout:
Running tests...
Test project /Users/syrusakbary/Development/wasmer/lib/runtime-c-api/tests
Start 1: test-exported-memory
1/13 Test #1 : test-exported-memory .............Child aborted***Exception: 0.00 sec
Start 2: test-exports
2/13 Test #2 : test-exports ..................... Passed 0.01 sec
Start 3: test-globals
3/13 Test #3 : test-globals ..................... Passed 0.00 sec
Start 4: test-import-function
4/13 Test #4 : test-import-function ............. Passed 0.01 sec
Start 5: test-imports
5/13 Test #5 : test-imports ..................... Passed 0.01 sec
Start 6: test-instantiate
6/13 Test #6 : test-instantiate ................. Passed 0.01 sec
Start 7: test-memory
7/13 Test #7 : test-memory ...................... Passed 0.00 sec
Start 8: test-module
8/13 Test #8 : test-module ...................... Passed 0.01 sec
Start 9: test-module-exports
9/13 Test #9 : test-module-exports .............. Passed 0.01 sec
Start 10: test-module-imports
10/13 Test #10 : test-module-imports .............. Passed 0.01 sec
Start 11: test-module-serialize
11/13 Test #11 : test-module-serialize ............ Passed 0.01 sec
Start 12: test-tables
12/13 Test #12 : test-tables ...................... Passed 0.00 sec
Start 13: test-validate
13/13 Test #13 : test-validate .................... Passed 0.00 sec
92% tests passed, 1 tests failed out of 13
Total Test time (real) = 0.08 sec
The following tests FAILED:
1 - test-exported-memory (Child aborted)
stderr:
Errors while running CTest
make[1]: *** [test] Error 8
thread 'test_c_api' panicked at 'Command failed with exit status: ExitStatus(ExitStatus(512))', lib/runtime-c-api/tests/runtime_c_api_tests.rs:43:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
```
2019-08-01 00:22:52 -07:00
Syrus
0dfa1f68a8
Formatted code
2019-07-31 23:51:12 -07:00
Syrus
7d89f9cc9a
Updated changelog
2019-07-31 23:46:59 -07:00
Syrus
ebce7d0371
Updated dependencies
2019-07-31 23:42:54 -07:00
Syrus
a6461c3b14
Removed explicit hashbrown dependency
2019-07-31 23:18:38 -07:00
Syrus
6245daaa84
Update dependencies to latest versions
2019-07-31 23:04:03 -07:00
bors[bot]
2b6e58962b
Merge #606
...
606: Cleanup Wasmer r=syrusakbary a=syrusakbary
This PR moves a few things around trying to make Wasmer more compelling to use:
* Two less directories on the root (`fuzz` is moved to the `lib/` folder, `media` is moved to `src/installer` folder)
* Improved README
* Moved `ARCHITECTURE.md` into the `docs` folder.
Co-authored-by: Syrus <me@syrusakbary.com>
2019-08-01 04:25:30 +00:00
Syrus
a83b6eccfa
Fixed middleware linting
2019-07-31 21:24:46 -07:00
Syrus
5e7a20ef94
Improved metering codebase
2019-07-31 21:20:39 -07:00
Syrus
9efaaab0bf
Merge branch 'master' into feature/cleanup
2019-07-31 21:11:54 -07:00
Syrus
6433a778a1
Improved README. Simplified integration tests command
2019-07-31 21:11:29 -07:00
Syrus
0d428d6c99
Moved fuzz dir back to root
2019-07-31 21:02:20 -07:00
bors[bot]
33166eaf66
Merge #607
...
607: Feature/update wasmparser and clif fork deps r=MarkMcCaskey a=MarkMcCaskey
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-08-01 02:28:35 +00:00
bors[bot]
3e27b0ca79
Merge #590
...
590: wasmer-c-api: error visibility changes r=bjfish a=YaronWittenstein
I've changed the visibility to `public` in order to support code like here:
https://github.com/spacemeshos/svm/blob/52f04b52cc/crates/svm-wasmer-c-api/src/macros.rs#L150
@syrusakbary @bjfish @Hywan
Co-authored-by: Yaron Wittenstein <yaron.wittenstein@gmail.com>
Co-authored-by: Brandon Fish <bjfish@users.noreply.github.com>
2019-08-01 01:59:12 +00:00
Brandon Fish
a832a4c787
Merge branch 'master' into wasmer-c-api-error-visibility
2019-07-31 19:58:23 -06:00
bors[bot]
f8fa06e5ed
Merge #589
...
589: wasmer-c-api-changes: making `wasmer_byte_array` fields `public` r=bjfish a=YaronWittenstein
I've added this PR since I've tests that need access to `wasmer_byte_array` field.
Here is an example:
52f04b52cc/crates/svm-wasmer-c-api/tests/c_api.rs (L96)
```rust
unsafe fn cast_wasmer_byte_array_to_string(wasmer_bytes: &wasmer_byte_array) -> String {
let slice: &[u8] =
std::slice::from_raw_parts(wasmer_bytes.bytes, wasmer_bytes.bytes_len as usize);
if let Ok(s) = std::str::from_utf8(slice) {
s.to_string()
} else {
panic!("error converting `wasmer_byte_array` to string")
}
}
```
@syrusakbary @bjfish @Hywan
Co-authored-by: Yaron Wittenstein <yaron.wittenstein@gmail.com>
Co-authored-by: Brandon Fish <bjfish@users.noreply.github.com>
2019-08-01 01:25:02 +00:00
Syrus
90d5dc6d62
Updated C# integration link
2019-07-31 18:19:42 -07:00
Syrus
6b66c024f0
Improved C/C++ icon
2019-07-31 18:18:37 -07:00
Brandon Fish
d9e1609616
Merge branch 'master' into wasmer-c-api-changes
2019-07-31 19:15:39 -06:00
Mark McCaskey
20e424c11e
update wasmparser and clif-fork dependencies
2019-08-01 10:13:25 +09:00
Syrus
a7db7f11f4
Improved README
2019-07-31 18:09:23 -07:00
Syrus
11e22f0536
Move architecture into docs
2019-07-31 18:05:15 -07:00
Syrus
9bac6d8818
Move fuzzer inside lib
2019-07-31 18:05:04 -07:00
bors[bot]
d117a46647
Merge #604
...
604: Fix metering benchmark with LLVM. r=syrusakbary a=nlewycky
Makes "make bench-llvm" pass.
Co-authored-by: Nick Lewycky <nick@wasmer.io>
Co-authored-by: nlewycky <nick@wasmer.io>
2019-07-31 23:58:26 +00:00
Syrus
89523e0186
Move media into installer dir
2019-07-31 14:48:48 -07:00
Syrus
253b2198fb
Improved Wasmer Installer in Windows
2019-07-31 14:09:01 -07:00
Syrus Akbary
5bf6a6b0bd
Trying to fix appveyor
2019-07-31 13:53:27 -07:00
Syrus Akbary
3100cef798
Updated Appveyor to publish .dll and a build with LLVM installed
2019-07-31 13:34:26 -07:00
nlewycky
54b5c642dc
Merge branch 'master' into features/llvm-metering
2019-07-31 13:13:07 -07:00
Nick Lewycky
931d556de1
Add support for internal fields.
2019-07-31 13:10:51 -07:00
Nick Lewycky
0e1fedceef
Fix build of metering_benchmark with the llvm backend.
2019-07-31 13:04:40 -07:00
bors[bot]
196c916ccf
Merge #603
...
603: Prepare for release of 0.6.0 r=syrusakbary a=syrusakbary
Prepare for release of 0.6.0
Co-authored-by: Syrus <me@syrusakbary.com>
2019-07-31 17:44:42 +00:00
Syrus
fdda670b58
Updated Changelog wrapping 0.6.0 version
2019-07-31 10:35:45 -07:00
Syrus
d95ef83331
Updated wapm-cli to 0.3.7
2019-07-31 10:34:53 -07:00
Syrus
fccf68c734
Updated version to 0.6.0
2019-07-31 10:28:45 -07:00
bors[bot]
b5e20e508d
Merge #601
...
601: simplify example and make public get_wasi_state unsafe r=MarkMcCaskey a=MarkMcCaskey
Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-07-31 07:17:47 +00:00
Mark McCaskey
2991ec36a4
uncomment install rust in appveyor windows ci
2019-07-31 16:16:19 +09:00
Mark McCaskey
a72610a546
remove unneeded call to main in plugin example
2019-07-31 16:01:44 +09:00
Mark McCaskey
7760d5a4a2
simplify example and make public get_wasi_state unsafe
2019-07-31 15:59:08 +09:00
bors[bot]
7d1ed7a056
Merge #600
...
600: Remove all uses of mem::uninitialized for Rust 1.38 r=syrusakbary a=MarkMcCaskey
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2019-07-31 05:43:55 +00:00
Syrus Akbary
6a4091e78e
Merge branch 'master' into feature/no-mem-uninit
2019-07-30 22:28:56 -07:00
Mark McCaskey
0ab8a0de09
Remove all uses of mem::uninitialized for Rust 1.38
2019-07-31 13:21:20 +09:00
bors[bot]
ae05d6f808
Merge #595
...
595: Add useful functions for external use of WASI filesystem r=MarkMcCaskey a=MarkMcCaskey
part of #583
Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-07-31 03:56:48 +00:00
Mark McCaskey
b407633366
add logging to plugin example, improve swap, and add some consts
2019-07-31 12:51:55 +09:00
Mark McCaskey
c099ed54e9
Merge branch 'master' into feature/public-api-wasi-fs
2019-07-30 19:26:19 -07:00
Mark McCaskey
620a521690
clean up wasi fs public api changes
2019-07-31 09:58:39 +09:00