Ivan Enderlin
ad7c618193
!temp Remove impl of WasmTypeList for Infallible.
...
I don't think it is necessary anymore.
2020-06-22 10:48:15 +02:00
Ivan Enderlin
5e26d9a74b
!temp Move HostFunction, Func & co. into wasmer.
...
Because `Func` needs an access to the runtime API (`wasmer-runtime`)
to trap properly, either we move parts of `wasmer-runtime` to
`wasm-common`, or we move parts of `wasm-common` into `wasmer`. I
decided to go with the second approach since `wasmer` is the only
crate to use `HostFunction` & co. It's not “common” by definition, and
it's way easier (for the moment).
2020-06-19 15:20:28 +02:00
Mark McCaskey
cf3a391422
Add comment about derefing typecasted pointer
2020-06-16 13:01:51 -07:00
Mark McCaskey
3cebca05d2
Require Env to be 'static in Function
2020-06-16 12:18:24 -07:00
Syrus
74a1463188
Fixed linting
2020-06-15 19:57:08 -07:00
Syrus
cdb7874bce
Make tests pass
2020-06-15 19:48:38 -07:00
Mark McCaskey
0191ffe598
Add wip
2020-06-15 18:05:59 -07:00
Mark McCaskey
0f0a8dde34
Merge branch 'master' into feature/functions-own-their-envs
2020-06-15 16:17:24 -07:00
Syrus
99ed3e889e
Simplified has_env structure
2020-06-15 13:22:20 -07:00
Syrus
cd1138d520
Added support for native calls to dynamic functions
2020-06-12 20:50:24 -07:00
Mark McCaskey
4bb0df3d22
First draft of functions owning their envs
2020-06-12 16:26:20 -07:00
Syrus Akbary
d37a4d9d80
Merge pull request #105 from wasmerio/feat-clippy
...
Makes Clippy happy
2020-06-10 07:57:58 -07:00
Mark McCaskey
3f45582097
Merge branch 'master' into trace-issue
2020-06-09 16:35:37 -07:00
Mark McCaskey
87a7f11b63
Merge branch 'master' into trace-issue
2020-06-09 14:42:01 -07:00
Mark McCaskey
7eb54950f1
Revert changes to Exportable
2020-06-09 13:26:12 -07:00
Ivan Enderlin
91d3182e49
chore(api) Copy type instead of cloning it.
2020-06-09 15:51:46 +02:00
Ivan Enderlin
88ea49564b
fix(api) Restore the unimplemented! macro.
2020-06-09 15:50:54 +02:00
Ivan Enderlin
e975925cf2
chore(api) Allow complex types.
2020-06-09 15:47:27 +02:00
Syrus
b57bbb1256
Added traps tests
2020-06-08 19:13:13 -07:00
Mark McCaskey
3c76999925
Implement Exportable for &Ts too (for some T)
2020-06-08 16:26:47 -07:00
Mark McCaskey
8530e5eb55
Implement Exportable for NativeFunc
2020-06-08 16:07:22 -07:00
Mark McCaskey
b46ea5b9cb
Get NativeFunc passing basic tests
2020-06-08 12:53:00 -07:00
Nick Lewycky
f94696b2ce
Fix repeated typo "funciton".
2020-06-06 17:22:26 -07:00
Ivan Enderlin
0ba966018b
feat(api) Split the externals module into sub-modules.
2020-05-28 16:07:17 +02:00