Commit Graph

17 Commits

Author SHA1 Message Date
a1f2b27957 chore: Fix clippy lints in API create
Fix clippy lints in the API crate.

The fixes are in test code, which is ingored on CI, but the warnings are
annoying when developing.
2024-01-06 02:07:57 +01:00
4259910956 Fixed api tests 2023-04-26 20:12:12 -07:00
9beb4563cd Change back to old api 2023-03-16 05:28:22 -07:00
f5d1e780ec Improved number conversion 2023-03-16 00:08:43 -07:00
753ba47675 Multiple improvements 2023-03-15 19:45:13 -07:00
61e38a1537 Got more tests working 2023-03-15 19:10:20 -07:00
382ed04be2 Added support for Wasm Module custom sections in js 2023-01-12 11:05:22 +00:00
d7fc2899b3 Switch Result<(), anyhow::Error> to Result<(), String>
This will make the tests pass on no-std JS
2022-09-05 13:41:36 +02:00
416dbfa2b8 Remove ExternRef tests on -js target 2022-09-02 16:27:56 +02:00
3a24731985 Use #[universal_test] (PR review) 2022-09-02 16:25:38 +02:00
12a0261051 Unify tests between -sys and -js API 2022-08-31 14:25:46 +02:00
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
dbc1b4e477 Add tests for smaller sizes, change logic to truncate parameters 2020-09-10 16:17:17 -07:00
d23cebfbfa Remove use of unsafe, add tests for func param conversion 2020-09-08 14:25:27 -07:00
c0e5c794d6 Added module imports and exports testing 2020-05-27 11:11:00 -07:00
3bac7117cb Added module tests 2020-05-27 10:42:19 -07:00
32daf6edfe Added module tests 2020-05-27 10:30:15 -07:00