Syrus
7bf6b9efc9
Added spec docs to app API public objects
2020-07-15 17:40:35 -07:00
Syrus Akbary
69abe305ab
Update README.md
2020-07-15 13:44:49 -07:00
Syrus Akbary
1454722c82
Merge pull request #165 from wasmerio/test-examples
...
Add examples as a doc to learn Wasmer
2020-07-15 13:44:18 -07:00
Syrus
e22bf4bbb2
Fixed windows tests
2020-07-15 13:13:29 -07:00
Syrus
6c5dcfd628
Fixed native engine
2020-07-15 13:00:14 -07:00
Syrus
388ef8d87a
Merge branch 'master' into test-examples
2020-07-15 12:44:36 -07:00
Syrus
8677ac1b0c
Fixed examples urls
2020-07-15 12:39:06 -07:00
Syrus
942caadb0d
Fixed examples
2020-07-15 12:35:49 -07:00
Syrus
b3c873cd8a
Trying to fix windows compilation
2020-07-14 17:42:24 -07:00
Syrus
d0c345ec80
Revert "Trying to fix Windows cross-compilation"
...
This reverts commit 2121923b7b .
2020-07-14 16:54:39 -07:00
Syrus
2121923b7b
Trying to fix Windows cross-compilation
2020-07-14 16:36:02 -07:00
Syrus
6f1677f5b3
Added more examples
2020-07-14 14:14:46 -07:00
Syrus Akbary
70b66779e4
Apply suggestions from code review
2020-07-14 12:06:05 -07:00
Syrus Akbary
babd3bf299
Merge pull request #164 from wasmerio/doc-engine-native-windows-is-supported
...
doc(engine-native) Windows is now supported
2020-07-14 12:01:34 -07:00
Syrus
71d478ac16
Trying to fix LLVM-10 install in macos
2020-07-14 11:19:34 -07:00
Syrus Akbary
8a35a4d10a
Merge pull request #163 from wasmerio/feat-engine-native-symbol-with-no-allocation
...
feat(engine-native) Add trailing null byte for `WASMER_METADATA` symbol
2020-07-14 10:52:03 -07:00
Ivan Enderlin
e2a972ff01
doc(examples) Fix a typo.
2020-07-14 15:16:01 +02:00
Ivan Enderlin
8f2f0c08e0
test(makefile) Test the examples with make test.
2020-07-14 15:02:23 +02:00
Ivan Enderlin
a8f555d78a
doc(examples) Update the “execute the example” commands.
...
The `--release` flag has been added, and all options have been reordered.
2020-07-14 15:01:22 +02:00
Ivan Enderlin
8844762e14
chore(makefile) Add the test-examples target.
2020-07-14 15:01:09 +02:00
Ivan Enderlin
55f5f7d667
doc(examples) Add more examples with documentation, tests etc.
2020-07-14 14:57:21 +02:00
Ivan Enderlin
2f7041dd96
doc(engine-native) Windows is now supported.
2020-07-14 13:36:22 +02:00
Ivan Enderlin
43979233bd
doc+test(examples) Write the engine-native example + test + doc.
2020-07-14 11:45:54 +02:00
Ivan Enderlin
258074f74e
fix(bin) Allow unreachable code.
2020-07-14 10:41:57 +02:00
Ivan Enderlin
368e893f03
feat(engine-native) Add trailing null byte for WASMER_METADATA symbol.
...
This PR creates the `WASMER_METADATA_SYMBOL` that contains the symbol
name. `\0` is added, following [the documentation
recomendation](36a61dde05/src/lib.rs (L123-L124) ):
> The `symbol` may not contain any null bytes, with an exception of
> last byte. A null terminated `symbol` may avoid a string allocation
> in some cases.
2020-07-14 09:40:35 +02:00
Syrus
e4163a1eb8
Fixed test compilation
2020-07-13 16:55:35 -07:00
Syrus Akbary
a1fdbd6408
Merge pull request #157 from wasmerio/doc-object-improve
...
doc(object) Improve documentation, write README, add some doctests
2020-07-13 15:56:03 -07:00
Syrus Akbary
018bb36d95
Merge branch 'master' into doc-object-improve
2020-07-13 13:52:02 -07:00
Syrus Akbary
a0d7c3a287
Merge pull request #158 from wasmerio/feat-engine-native
...
feat(engine-native) Make it compile without the `compiler` feature
2020-07-13 13:50:23 -07:00
Syrus Akbary
bf2cd2f723
Merge pull request #159 from wasmerio/fix-bin-store-engine-bug
...
fix(bin) Fix a compilation error
2020-07-13 13:49:42 -07:00
Syrus Akbary
8df340edd2
Merge pull request #160 from wasmerio/fix-object-relocation-size
...
fix(object) Relocation size no longer depends on the pointer width
2020-07-13 13:49:05 -07:00
nlewycky
ce115b05c6
Merge pull request #161 from wasmerio/enable-verifier
...
Add `--enable-verifier` flag to wasmer.
2020-07-13 12:42:16 -07:00
Nick Lewycky
138899c186
Remove verify_ir() from Cranelift and LLVM config classes.
...
It's replaced by `enable_verifier()` on the CompilerConfig trait.
Enable verifier for all compilers (it's a no-op on singlepass but enabled
nevertheless) when running tests.
2020-07-13 12:13:49 -07:00
Nick Lewycky
50e54f6be6
Add --enable-verifier to the wasmer command line. Wire it through CompilerConfig.
2020-07-13 12:03:52 -07:00
Ivan Enderlin
82c5da921a
fix(object) Relocation size no longer depends on the pointer width.
...
I believe that was an error. The relocation size depends on the
architecture.
2020-07-13 17:51:07 +02:00
Ivan Enderlin
7400d85599
fix(bin) Fix a compilation error.
...
This patch fixes the following error:
```
error[E0277]: the trait bound `std::sync::Arc<dyn wasmer_engine::engine::Engine + std::marker::Send + std::marker::Sync>: wasmer_engine::engine::Engine` is not satisfied
--> src/store.rs:380:32
|
380 | let store = Store::new(&engine);
| ^^^^^^^ the trait `wasmer_engine::engine::Engine` is not implemented for `std::sync::Arc<dyn wasmer_engine::engine::Engine + std::marker::Send + std::marker::Sync>`
|
::: …/lib/api/src/store.rs:24:12
|
24 | E: Engine + ?Sized,
| ------ required by this bound in `wasmer::store::Store::new`
```
2020-07-13 17:28:55 +02:00
Ivan Enderlin
95788c925b
chore(makefile) Test wasmer-engine-native in test-packages.
2020-07-13 15:54:54 +02:00
Ivan Enderlin
0da0a38213
chore(engine-native) Format error messages.
2020-07-13 15:44:44 +02:00
Ivan Enderlin
e2c823bf39
test(engine-native) Add tests for the builder.
2020-07-13 15:38:05 +02:00
Ivan Enderlin
0ef82fbe1f
doc(compiler) Fix a typo.
2020-07-13 15:23:31 +02:00
Ivan Enderlin
45928dc266
fix(engine-native) Make it compile without the compiler feature.
2020-07-13 15:23:09 +02:00
Ivan Enderlin
89900bb05b
chore(makefile) Test wasmer-object with make test-packages.
2020-07-13 14:36:42 +02:00
Ivan Enderlin
3e13e78959
Merge pull request #156 from wasmerio/feat-object-size
...
feat(object) Infer relocation size, kind and encoding from target
2020-07-13 14:33:35 +02:00
Ivan Enderlin
65b9409189
doc(object) Improve documentation and add tests.
2020-07-13 14:31:21 +02:00
Ivan Enderlin
1445cfe40b
feat(object) Simplify a match expression.
...
This patch handles the `Result` before the `match` arms.
2020-07-13 14:28:24 +02:00
Ivan Enderlin
24a4b67683
feat(engine-native) Avoid cloning Triple.
2020-07-13 11:49:32 +02:00
Ivan Enderlin
7a67beddad
chore(object) Rename a variable.
2020-07-13 11:46:34 +02:00
Ivan Enderlin
f16654822f
feat(object) Don't use a default pointer width, raise an error instead.
2020-07-13 11:40:00 +02:00
Ivan Enderlin
211633a183
feat(object) Use the target to guess the relocation kind.
...
Also, returns an `ObjectError` if the architecture isn't supported
rather than defaulting to some values.
2020-07-13 11:36:00 +02:00
Ivan Enderlin
99dc93adc0
chore(compiler) Remove useless empty line.
2020-07-13 11:30:01 +02:00