Commit Graph

1270 Commits

Author SHA1 Message Date
Ivan Enderlin
2dddfc8b39 doc(api) Draft Safety Sections. 2020-06-09 15:48:44 +02:00
Ivan Enderlin
e975925cf2 chore(api) Allow complex types. 2020-06-09 15:47:27 +02:00
Ivan Enderlin
5c7cb75458 feat(api) Implement Default for ImportObject. 2020-06-09 15:45:07 +02:00
Ivan Enderlin
066c7ff1cc chore(api) Allow complex types. 2020-06-09 15:44:02 +02:00
Ivan Enderlin
5fc6b0b293 doc(api) Add a Safety Section. 2020-06-09 15:43:27 +02:00
Ivan Enderlin
0defd400a2 chore(api) Replace match by if let. 2020-06-09 15:42:38 +02:00
Ivan Enderlin
0b95b7e99f chore(api) Lazily bound memory when calling Pages::max_value(). 2020-06-09 15:41:32 +02:00
Ivan Enderlin
0957e040c9 test(api) Migrate more tests for the imports! macro. 2020-06-09 10:27:45 +02:00
Syrus
b57bbb1256 Added traps tests 2020-06-08 19:13:13 -07:00
Mark McCaskey
87a28b057e Move NativeFunc test from api to test/compilers 2020-06-08 16:37:33 -07:00
Mark McCaskey
3c76999925 Implement Exportable for &Ts too (for some T) 2020-06-08 16:26:47 -07:00
Mark McCaskey
e70828eb37 Fix up tests and benchmark to use new get 2020-06-08 16:10:05 -07:00
Mark McCaskey
8530e5eb55 Implement Exportable for NativeFunc 2020-06-08 16:07:22 -07:00
Nick Lewycky
4e5f878560 Don't use uuid crate. This adds an EngineId based on our ModuleId. 2020-06-08 14:37:33 -07:00
Mark McCaskey
e2b6041a65 Add benchmark 2020-06-08 13:58:21 -07:00
Nick Lewycky
d858b544fa Fix Engine::same().
Preferably we'd be able to compare two trait objects both vptr and struct, but rust doesn't have a way to do that without relying on unsafe code.

Fixes error with `cargo clippy`.
2020-06-08 12:56:22 -07:00
Mark McCaskey
b46ea5b9cb Get NativeFunc passing basic tests 2020-06-08 12:53:00 -07:00
Ivan Enderlin
f144d981b5 feat(api) Support state creator in the imports! macro.
This patch restores the ability for the `imports!` macro to pass a
state creator, i.e. to call `ImportObject::new_with_data`.
2020-06-08 16:18:59 +02:00
Nick Lewycky
f94696b2ce Fix repeated typo "funciton". 2020-06-06 17:22:26 -07:00
Mark McCaskey
2666a697ac Merge branch 'master' into trace-issue 2020-06-04 16:48:19 -07:00
Syrus
80c6b5c537 Address feedback 2020-06-04 16:45:43 -07:00
Mark McCaskey
d1429fb18b Fix up macro issue 2020-06-04 16:41:57 -07:00
Syrus
cca551be4a Added first compiler target iteration 2020-06-04 13:21:08 -07:00
Syrus
d0117b0509 Fixed lint issues 2020-06-03 14:11:34 -07:00
Syrus
f1b7e6539b Fixed issues 2020-06-03 14:06:50 -07:00
Syrus
f6fd628953 Improved Table API to matching Memory API 2020-06-03 13:51:26 -07:00
Syrus
c5e38a7468 Added serialize_to_file API 2020-06-01 17:02:05 -07:00
Mark McCaskey
b83885ad35 Add missing file ordered_resolver 2020-05-29 17:23:13 -07:00
Mark McCaskey
e45a5b5af9 Add Tables to C API; clean up 2020-05-29 17:14:17 -07:00
Mark McCaskey
342b2cf927 Get Wasm C API Hello World working 2020-05-29 13:39:24 -07:00
Mark McCaskey
027e26c1b4 Add progress on porting Wasm C API 2020-05-29 13:35:07 -07:00
Mark McCaskey
acfb081d6c Merge pull request #68 from wasmerio/feat-api-exportsiterator
feat(api) Implement `ExportsIterator` to iterate over `Extern`
2020-05-28 15:06:51 -07:00
Syrus Akbary
ad127b24bc Merge pull request #71 from wasmerio/feat-api-split-externals
feat(api) Split the `externals` module into sub-modules
2020-05-28 08:29:36 -07:00
Ivan Enderlin
0ba966018b feat(api) Split the externals module into sub-modules. 2020-05-28 16:07:17 +02:00
Ivan Enderlin
4b584ed816 feat(api) Export Atomically. 2020-05-28 14:57:15 +02:00
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