Ivan Enderlin
9bc0910a6b
feat(api) Remove all references to wasmer-js.
2021-07-23 12:30:08 +02:00
Ivan Enderlin
b30284897e
feat(api) Merge js-api into api.
...
This patch takes the entire `wasmer-js` crate and merges it into the
`wasmer` crate.
Inside the `lib/api/src/` directory, there are 2 new directories:
1. a new `sys` directory, which contains the usual `wasmer` crate
implementation,
2. a new directory `js`, which contains the implementation of
`wasmer-js`.
The `Cargo.toml` file is still compatible. The `default` feature
fallbacks to `sys-default`, which enables the `sys` feature. All
features related to compilers or engines or anything else prior this
patch, activates the `sys` feature.
Parallel to that, there is a `js-default` and `js` features.
The `Cargo.toml` file is extensively documented to explain what are
dependencies, dev-dependencies, features and other sections related to
`sys` or to `js`.
There is a bug with `wasm_bindgen_test` where it doesn't compile or
look for tests in `tests/*/<test>.rs`. The hack is to name files
`tests/js_<test>.rs`. Ugly, but it works.
2021-07-23 12:10:49 +02:00
Syrus Akbary
0537b633bf
Merge branch 'master' into js-api
2021-07-19 15:51:55 -05:00
Syrus Akbary
98481f51fe
Move ModuleInfo to wasmer-types
2021-07-16 15:42:39 -07:00
Ivan Enderlin
6fd5004334
fix(api) Fix typo in the Cargo.toml description
2021-07-16 15:12:40 +02:00
Syrus Akbary
88ff6b8e78
Improved wasmer-js debugging
...
# Conflicts:
# lib/wasi/tests/js.rs
2021-07-15 13:56:27 -07:00
Syrus Akbary
7553efba3f
Fixed tests
2021-07-02 01:35:09 -07:00
Syrus Akbary
1a8952e2fa
Improved API based on feedback
2021-07-01 18:29:31 -07:00
Syrus Akbary
a039af4dee
Fix syntax again
2021-06-24 17:39:05 -07:00
Syrus Akbary
26d44dfeaa
Fixed comments
2021-06-24 16:26:56 -07:00
Syrus Akbary
fda6418349
Remove unused APIs
2021-06-24 16:15:27 -07:00
Syrus Akbary
5a2d4975f4
Improved PR based on suggestions
2021-06-24 15:27:17 -07:00
Syrus Akbary
ac42d1b295
Added methods to MemoryView
2021-06-24 15:16:33 -07:00
Syrus Akbary
009c0b21dc
Fixed Array deref
2021-06-24 15:15:57 -07:00
Syrus Akbary
c9a167bb3a
Improved WasmCell ptr API
2021-06-24 14:34:30 -07:00
Syrus Akbary
9493ac2d85
Improved API
2021-06-24 12:45:34 -07:00
Syrus Akbary
67a028bbab
Added debug to WasmCell
2021-06-24 12:40:44 -07:00
Syrus Akbary
5ede1ac544
Improved API by using references
2021-06-24 12:26:22 -07:00
Syrus Akbary
dc84bd48de
Added WasmCell to the API
2021-06-24 12:04:58 -07:00
Mark McCaskey
0c0fdad3d2
Prepare for 2.0.0 release
2021-06-15 11:26:46 -07:00
Mark McCaskey
80a8658e5a
Prepare for 2.0.0-rc2 release
2021-06-03 09:19:16 -07:00
Mark McCaskey
cfc1a5fc26
Fix typo 2.0.0-rc -> 2.0.0-rc1
2021-06-02 08:32:46 -07:00
Mark McCaskey
2897a5b05e
Bump version number to 2.0.0-rc1
2021-06-02 08:21:34 -07:00
Syrus Akbary
05c4054849
Added docs to the Wasmer API
2021-06-02 00:52:26 -07:00
Syrus Akbary
2b69176a86
Added API compatibility layer
2021-06-02 00:29:55 -07:00
Ivan Enderlin
16e18379eb
chore(api) Restore the default-compiler and default-engine features.
...
They were marked as deprecated but they are actually not :-)!
2021-06-01 09:19:35 +02:00
Ivan Enderlin
ff4a127dbb
chore(api): Remove the deprecated feature and associated code.
2021-05-31 17:13:14 +02:00
Mark McCaskey
6c333413a3
Merge branch 'master' into fix-cyclic-ref
2021-05-28 19:19:16 -04:00
Mark McCaskey
729a1cbe08
Fix up the deprecated crates
2021-05-28 16:18:13 -07:00
Mark McCaskey
229d0dcd32
Address feedback about location of InstanceRef upgrade
2021-05-28 12:05:52 -07:00
Mark McCaskey
9b216cc5e5
Address testing related feedback
...
Expose inner VM externals as an unsafe method and move logic into the tests
2021-05-28 11:41:57 -07:00
Ivan Enderlin
3d66a2e360
feat: Rename wasmer-engine-native to wasmer-engine-dylib.
2021-05-28 14:13:24 +02:00
Ivan Enderlin
79d5f20301
feat: Rename wasmer-engine-native to wasmer-engine-shared-object.
2021-05-28 14:13:24 +02:00
Mark McCaskey
b319e0405f
Merge branch 'master' into fix-cyclic-ref
2021-05-27 11:07:39 -04:00
Ivan Enderlin
14f469f718
Merge branch 'master' into feat-rename-jit-engine
2021-05-27 13:01:02 +02:00
Mark McCaskey
f0ad0bed11
Clean up WeakOrStrongInstanceRef methods
2021-05-26 13:48:57 -07:00
Mark McCaskey
fe8d077e4a
Clean up PR for review
2021-05-25 12:38:00 -07:00
Ivan Enderlin
e5a784a006
feat: Rename wasmer-engine-jit to wasmer-engine-universal.
...
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
Syrus
a1854f4784
Updated vm code to trap handle
2021-05-24 17:12:46 -07:00
Mark McCaskey
dea2abb4fc
Add tests, implement for all externs
2021-05-20 10:38:07 -07:00
Mark McCaskey
c3d344e5fb
Fix cyclic ref in WasmerEnv
2021-05-19 13:23:59 -07:00
Mark McCaskey
0d4fe293e5
Merge branch 'master' into feature/update-clif-small-simd-improvement
2021-05-13 15:38:40 -04:00
Syrus
7c96f54dfa
Use old cranelift backend for now so cranelift+native tests pass
2021-05-12 15:40:25 -07:00
Syrus Akbary
29fd4301f4
Fix default store
2021-05-12 13:47:58 -07:00
Syrus Akbary
8a5a33179e
Implemented custom trap handler
2021-05-12 13:06:40 -07:00
Mark McCaskey
9e04e2624b
Update cranelift, impl low hanging fruit SIMD opcodes
2021-05-12 09:15:56 -07:00
Syrus Akbary
df83605aad
Renamed TrapInfo to TrapHandler
2021-05-11 13:19:35 -07:00
Syrus
1863fcbc20
Implement unimplemented trap oom/handler code
2021-05-10 17:27:07 -07:00
Syrus Akbary
b5ce9b5c6e
Fixed linting
2021-05-10 16:50:40 -07:00
Syrus Akbary
8b86f795b7
Improved trap handling
2021-05-10 16:42:10 -07:00