Commit Graph

184 Commits

Author SHA1 Message Date
Ivan Enderlin
ed9871a6a1 feat(api) Explicitly specify the iterator lifetime. 2020-05-28 11:29:58 +02:00
Ivan Enderlin
6d6274ba45 feat(api) Implement ExportsIterator to iterate over Extern.
This patch adds the `Exports::iter()` method, which returns an
`ExportsIterator`. This latter new structure implements `Iterator` and
`ExactSizeIterator`.

Similarly to `runtime::module::ExportsIterator`, it comes with
`functions`, `globals`, `memories` and `tables` methods to compute
sub-iterators that filter items to the expected extern type.
2020-05-28 10:55:14 +02:00
Syrus
17bca3cf8e Use minor versions instead of patch 2020-05-27 17:42:47 -07:00
Syrus
30dd994cd6 Changed module set_name to return a boolean 2020-05-27 14:29:54 -07:00
Syrus
62fb4f79c1 Moved misc test into api test 2020-05-27 11:55:21 -07:00
Syrus
c0e5c794d6 Added module imports and exports testing 2020-05-27 11:11:00 -07:00
Syrus
3bac7117cb Added module tests 2020-05-27 10:42:19 -07:00
Syrus
32daf6edfe Added module tests 2020-05-27 10:30:15 -07:00
Syrus
82785df3f0 Merge branch 'master' into tests 2020-05-26 18:16:01 -07:00
Syrus
7db247e07c Added basic external tests 2020-05-26 18:12:01 -07:00
Syrus
64a51edc55 Improved types comparators 2020-05-26 18:11:51 -07:00
Syrus
659f113c95 Improved internal docs 2020-05-26 13:28:00 -07:00
Syrus
6e2ff6c749 Added dummy engine to api 2020-05-26 13:27:49 -07:00
Mark McCaskey
669fc76545 Merge pull request #58 from wasmerio/fix-wasmer-import-object-example
fix(api) The `func!` macro has been removed, fix example
2020-05-26 12:19:09 -07:00
Mark McCaskey
d8b6e73338 Merge pull request #54 from wasmerio/feat-api-import
feat(api) Import from the current crate.
2020-05-26 11:06:03 -07:00
Ivan Enderlin
4c2b64a752 fix(api) The func! macro has been removed, fix example. 2020-05-26 14:37:47 +02:00
Ivan Enderlin
c20a237af4 feat(api) Implement Debug for Global. 2020-05-26 11:26:24 +02:00
Ivan Enderlin
7615052adb feat(api) Use macro to avoid code duplication. 2020-05-25 14:49:54 +02:00
Ivan Enderlin
58502f5d99 feat(api) Import from the current crate.
This patch imports `MemoryType`, `Pages` and `TableType` from the
current crate, which already re-exports them from the `wasm_common`
crate, but this way we reduce multiple dependencies from multiple
modules.
2020-05-25 14:17:48 +02:00
Syrus
ed2b4c5761 Added custom sections to the base API 2020-05-22 11:51:31 -07:00
Syrus Akbary
3a96e8c2d3 Merge pull request #43 from wasmerio/engine-refactor
Engine refactor
2020-05-21 18:16:38 -07:00
Syrus
262551ac02 Simplified signature code a bit 2020-05-21 17:27:21 -07:00
Syrus
e92064b844 Improve frame info registration 2020-05-21 13:56:13 -07:00
Syrus
6a706f151e Improved export signatures 2020-05-20 22:39:25 -07:00
Syrus
7be1b167f9 Make lint happy 2020-05-20 21:52:35 -07:00
Syrus
3d6ff89da0 Simplified serialization 2020-05-20 21:06:12 -07:00
Syrus
2c66e2ac3c Simplify instantiation 2020-05-20 20:23:17 -07:00
Mark McCaskey
ba6b35ae05 Fix up import object tests 2020-05-20 17:09:05 -07:00
Mark McCaskey
a321f73988 Get 2 C API tests using ImportObject::extend working 2020-05-20 16:35:26 -07:00
Mark McCaskey
6b617895b0 Add resolver chaining and recursive resolving 2020-05-20 14:49:30 -07:00
Syrus
b97fad460d Added NamedResolver. Make ImportObject inherit from it 2020-05-20 12:26:21 -07:00
Syrus
1cc32b7a73 Make dynamic functions work again 2020-05-19 22:03:28 -07:00
Syrus
44723e2773 Imported functions only receive one context 2020-05-19 21:19:40 -07:00
Syrus
5dbe419a3f Fixed linting 2020-05-19 19:06:18 -07:00
Syrus
37d00ac338 Renamed CompiledModule to Artifact 2020-05-19 18:56:25 -07:00
Syrus
09e057338a Renamed Module to ModuleInfo 2020-05-19 18:47:50 -07:00
Syrus
ae8dcfcb27 Make PIC optional for compilers 2020-05-19 16:56:56 -07:00
Syrus
d2526adc15 Merge branch 'master' into native-engine
# Conflicts:
#	Cargo.lock
2020-05-19 13:45:54 -07:00
Mark McCaskey
9d28bd8c62 Merge pull request #25 from wasmerio/feature/c-api-dynfunc
Feature/c api dynfunc
2020-05-19 13:21:00 -07:00
Syrus Akbary
45a83b3239 Update README.md 2020-05-18 20:12:22 -07:00
Syrus
7b85c5d4a6 Added native engine feature to wasmer api 2020-05-18 17:49:20 -07:00
Syrus
88b4533832 Merge branch 'master' into native-engine
# Conflicts:
#	Cargo.lock
#	lib/api/src/externals.rs
#	lib/compiler/src/relocation.rs
#	lib/engine-jit/src/link.rs
#	lib/engine/src/engine.rs
2020-05-18 17:26:49 -07:00
Mark McCaskey
4d5367c283 Fix rebase mistakes or something 2020-05-18 16:38:36 -07:00
Mark McCaskey
4366594535 Get test-import test passing 2020-05-18 16:33:08 -07:00
Mark McCaskey
d6b5f99a22 Fix more C API tests 2020-05-18 16:33:08 -07:00
Mark McCaskey
7e9eb14432 Reverse trampoline static generation now works! 🎉 2020-05-18 16:30:43 -07:00
Mark McCaskey
88ecb8df25 Make host trampolines work (PoC) 2020-05-18 16:26:55 -07:00
Syrus
1cee1983a0 Added extra comments 2020-05-18 12:50:15 -07:00
Syrus
b3f7a6bced Simplified function definition 2020-05-18 12:40:25 -07:00
Syrus
10dd61b25c Improved code lint 2020-05-18 12:34:41 -07:00