Commit Graph

26 Commits

Author SHA1 Message Date
f123f69892 chore: inline format args to improve readability
Using this command, fixed format argument inlining to improve readability, and fix a few minor related styling issues like trailing commas in a single line.

```
cargo clippy --all-targets --workspace --exclude wasmer-cli --exclude wasmer-swift -- -D clippy::uninlined_format_args
```
2025-01-22 12:53:01 -05:00
3b06c7b220 feat(api/v8): Initial support for v8 2024-10-07 15:12:34 +04:00
41bd38447b feat(api/interpreter): Add experimental support for wasmi backend 2024-10-03 18:04:05 +02:00
8cc99474e1 Merge branch 'release-5.0' into wamr 2024-09-23 16:32:29 +02:00
a4bd0dcd9e feat(api): Update WAT version
Also, rename all occurrences of `set_local` to `local.set`, `get_local`
to `local.get` and `anyfunc` to `funcref`
2024-09-06 14:49:21 +02:00
e370b08a6c fix(api/interpreter): make linter happy 2024-05-27 18:23:40 +02:00
425c2cbe1b feat(api): Update WAMR
feat(api): Update WAMR
2024-05-27 18:19:45 +02:00
9a6ef5210a continue 2024-03-22 17:21:55 +01:00
fff1b78f04 Removed unnecessary dobule error formatting 2024-02-10 13:54:15 -08:00
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