Commit Graph

60 Commits

Author SHA1 Message Date
ptitSeb
a72e655be6 Added back all removed function for Engine to avoid API breaking changes (#3700) 2023-03-22 12:16:35 +01:00
Syrus Akbary
69f5ec3981 Fixed missing api 2023-03-02 15:14:48 -08:00
Syrus Akbary
61ca01d341 Fix linting errors 2023-03-02 14:26:06 -08:00
Syrus Akbary
93def03796 Address most of the comments 2023-02-25 11:23:03 -08:00
Syrus Akbary
1f64ba13e0 Wrap engine 2023-02-24 13:35:46 -08:00
Syrus Akbary
95e351adb2 Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/engine.rs
#	lib/api/src/store.rs
2023-02-15 13:26:45 -08:00
Syrus Akbary
bb3492900e Make function_env common for js/sys 2023-02-09 16:46:01 -08:00
Syrus Akbary
4c9a154e77 Use general store 2023-02-09 20:29:24 +01: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
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
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
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
Ivan Enderlin
2afed4d813 feat: Use latest version of loupe. 2021-03-22 11:43:46 +01:00
Ivan Enderlin
026520998c feat: Start implementing loupe::MemoryUsage on wasmer::Store. 2021-03-22 11:42:28 +01:00
Simon Warta
c0e7f194ad Export wasmer::{BaseTunables, Tunables} 2020-12-12 16:07:14 +01:00
Mark McCaskey
d54a8b8676 Improve Wasmer API intro docs 2020-12-07 13:29:53 -08:00
Syrus Akbary
b8eb7f9b59 Fix lint 2020-12-04 16:01:05 -08:00
Syrus Akbary
1ee0146954 Fix all compilation issues simplifying the code 2020-12-04 15:58:38 -08:00
Syrus
13e6f29c29 Set compiler config to be owned (following wasm-c-api) 2020-12-04 02:39:19 -08:00
Mark McCaskey
79392e5d33 Fix bug with default-native feature in store.rs 2020-09-22 17:18:30 -07:00
Syrus
1293df8dd6 Added Debug to public structs. Close #173 2020-07-21 20:38:32 -07:00
Syrus
0c13173624 Fixed comments based on feedback 2020-07-15 18:04:13 -07:00
Syrus
7bf6b9efc9 Added spec docs to app API public objects 2020-07-15 17:40:35 -07:00
Syrus Akbary
7b54e9b994 Merge branch 'master' into doc-api-store 2020-07-10 09:19:08 -07:00
Ivan Enderlin
54a06cd92e doc(api) Improve the documentation of Store. 2020-07-10 14:40:14 +02:00
Ivan Enderlin
bc7d7a735e doc(api) Improve documentation of Store methods. 2020-07-10 14:30:27 +02:00
Ivan Enderlin
0ef23419c4 fix(api) Use Self instead of Store. 2020-07-10 14:18:30 +02:00
Syrus
5273fa0cae Moved tunables into Store 2020-06-18 12:56:38 -07:00
Syrus
83203a849b Improved tunables story 2020-06-18 12:08:55 -07:00
Syrus
422051ebe5 Simplified compiler config names 2020-06-18 01:36:25 -07:00
Syrus
1002a2765c Improved default store 2020-06-18 01:34:11 -07:00
Syrus
f2fa2a9100 Created builders for JIT and Native engines 2020-06-18 00:57:32 -07:00
Syrus
99bd98458a Improved compiler configurations 2020-06-17 22:47:32 -07:00
Syrus
8649f2eb79 Remove target from CompilerConfig 2020-06-17 20:26:50 -07:00
Syrus
e062e87d8b Refactored Compilers 2020-06-17 19:17:06 -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
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
Syrus
ae8dcfcb27 Make PIC optional for compilers 2020-05-19 16:56:56 -07:00
Syrus
7b85c5d4a6 Added native engine feature to wasmer api 2020-05-18 17:49:20 -07:00
Mark McCaskey
e77cbd8b94 Deny many warnings in CI; fix warnings 2020-05-13 12:44:34 -07:00
Mark McCaskey
480ecd2cda Apply various fixes to get the C API working
24% of tests are passing now!
2020-05-07 14:02:13 -07:00
Syrus
ab017f3737 Merge branch 'master' into engine
# Conflicts:
#	Cargo.toml
#	lib/api/Cargo.toml
#	lib/api/src/store.rs
2020-05-05 15:24:01 -07:00
Syrus
150639df50 Improved ergonomics when using multiple compilerss 2020-05-05 14:18:45 -07:00
Syrus
c2b74e4c4a Make compiler config even simpler 2020-05-05 13:52:18 -07:00