Commit Graph

200 Commits

Author SHA1 Message Date
Ivan Enderlin
5bfd45e6ab doc(api) Update documentation. 2021-07-23 14:43:19 +02:00
Ivan Enderlin
36c4f92dad fix(api) Use the sys feature when no default features is enabled. 2021-07-23 13:52:02 +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
dc84bd48de Added WasmCell to the API 2021-06-24 12:04:58 -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
ff4a127dbb chore(api): Remove the deprecated feature and associated code. 2021-05-31 17:13:14 +02: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
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 Akbary
f7e152a71f Renamed VMExport to VMExtern 2021-05-01 18:22:47 -07:00
k-nasa
7c9984ba50 Fix feature links 2021-04-24 16:32:08 +09:00
k-nasa
40ee361586 fix favicon 2021-04-24 15:34:44 +09:00
Mark McCaskey
bfc91dc445 Feature gate wasmer::ExternRef 2021-03-16 09:24:13 -07:00
Mark McCaskey
d392ce3cd7 Fix up TODOs and get tests passing again 2021-02-24 13:02:32 -08:00
Mark McCaskey
337bb8aba6 Put ExternRef in Value, remove phantom data 2021-02-19 08:06:18 -08:00
Mark McCaskey
828d265428 Add basic API tests with reference types with dynamic functions 2021-02-17 08:11:07 -08:00
Mark McCaskey
b140dc2c8e Add misc code cleanups 2021-02-10 12:13:33 -08:00
Mark McCaskey
7b8c5b3554 More work on reference types -- wip 2021-02-09 10:54:26 -08:00
Alexander Mescheryakov
ba5dabe3f3 Fixed broken link to wasmer-wasi 2021-01-10 22:04:03 +03:00
Alexander Mescheryakov
142a788cfc Fix examples URI 2021-01-07 13:18:07 +03:00
Simon Warta
df74a4812c Create dedicated MiddlewareError 2020-12-23 00:07:00 +01:00
Simon Warta
c41451a547 Replace wasmparser::Result with wasmer::WasmResult in middleware 2020-12-23 00:07:00 +01:00
Simon Warta
9d6fc4a4ba Expose wasmer::LLVMOptLevel 2020-12-17 10:13:07 +01:00
Simon Warta
85bb1039f8 Expose wasmer::CraneliftOptLevel
This is required to do something like

```rust
use wasmer::{Cranelift, CraneliftOptLevel};

let mut compiler = Cranelift::default();
compiler.opt_level(CraneliftOptLevel::None);
let engine = JIT::new(compiler).engine();
// ...
```
2020-12-17 10:13:07 +01:00
Simon Warta
c0e7f194ad Export wasmer::{BaseTunables, Tunables} 2020-12-12 16:07:14 +01:00
Mark McCaskey
7e1274b0b5 Address feedback on API docs 2020-12-10 17:38:01 -08:00
Mark McCaskey
ff194f6251 Add example in the intro, reorder docs 2020-12-09 16:49:07 -08:00
Mark McCaskey
d54a8b8676 Improve Wasmer API intro docs 2020-12-07 13:29:53 -08:00
Syrus Akbary
28c8b877fd Merge branch 'master' into compilerconfig-owned 2020-12-04 13:53:37 -08:00
Syrus
8481161cf9 Updated metering with remaining points implementation 2020-12-04 17:06:29 +01:00
Syrus
13e6f29c29 Set compiler config to be owned (following wasm-c-api) 2020-12-04 02:39:19 -08:00
Simon Warta
31cfa4941d Add missing re-exports CompileError, WasmError and ParseCpuFeatureError 2020-12-04 10:50:40 +01:00
Syrus Akbary
097bfeb479 Merge branch 'master' into feature/middleware 2020-11-30 21:31:56 -05:00
nlewycky
f110c4d308 Merge branch 'master' into feature/middleware 2020-11-30 15:12:02 -08:00
Mark McCaskey
03410c15a1 Rename EngineExport to Export 2020-11-30 12:32:53 -08:00
Mark McCaskey
9e0cfcebbb Rename vm::Export to vm::VMExport 2020-11-30 11:38:14 -08:00
Mark McCaskey
8669e92ed4 Move EngineExport to engine 2020-11-25 16:44:21 -08:00
Mark McCaskey
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
losfair
e7dd725c6d Add module info transformation method to ModuleMiddleware. 2020-11-20 14:34:46 -08:00
Mark McCaskey
eeed1b9124 Rename LegacyEnv to UnsafeMutableEnv 2020-11-20 14:21:54 -08:00
Mark McCaskey
a95c44583c Add hack to get deprecated API to work 2020-11-19 17:43:33 -08:00
Mark McCaskey
38b296e36f Move WasmerEnv into its own mod, implement it for stdlib types 2020-11-17 15:30:21 -08:00
Mark McCaskey
a19705ae11 Remove free method, call finalizers in C API 2020-11-16 16:36:58 -08:00
Mark McCaskey
2690e5e8f6 Merge branch 'master' into feature/host-env-prototype 2020-11-16 15:13:29 -08:00
Mark McCaskey
1c9fc1f0d4 Fix up doc tests in api 2020-10-29 15:45:23 -07:00
Mark McCaskey
a25288a0ae Improve error messages on WasmerEnv macro, clean up code, add tests 2020-10-29 15:09:24 -07:00
Mark McCaskey
83008a7771 Fix up error handling code, get tests passing 2020-10-29 11:13:51 -07:00
Mark McCaskey
be3ab95688 Add error handling to host init logic 2020-10-28 17:39:37 -07:00
Simon Warta
984d478d05 Update example to latest Tunables trait 2020-10-28 00:30:13 +01:00