ptitSeb
ec14a758ac
Fixed linting
2023-02-27 10:19:58 +01:00
ptitSeb
6f3253e561
Added a universal_test on FunctionEnvMut::data_and_store_mut function
2023-02-24 12:12:30 +01:00
ptitSeb
87eb05d6d6
Merge branch 'master' into wasix-core-changes
2023-01-16 09:39:08 +01:00
Syrus Akbary
a4b5ad74f7
Added missing wasm file
2023-01-12 11:20:47 +00:00
Syrus Akbary
382ed04be2
Added support for Wasm Module custom sections in js
2023-01-12 11:05:22 +00:00
Christoph Herzog
cfa3bf4200
Merge remote-tracking branch 'origin/master' into wasix-core-changes
2022-12-22 13:51:14 +01:00
Felix Schütt
b24025ad01
cargo clippy --fix --all
2022-12-21 00:49:45 +01:00
Christoph Herzog
5109a407c4
WASIX Preparation
...
This commit extracts changes to core libraries made in the WASIX branch.
It is not reasonable to extract the partial commit history, so this is
just a batch commit.
The history will make a bit more sense again if we decide to merge the
WASIX branch with full commit history.
2022-12-16 11:47:04 +01:00
Syrus Akbary
0a1a71fd6e
Revert #3145
...
This reverst buggy commit e1e08f44b7
2022-11-21 11:09:19 -08:00
Felix Schütt
ba5c1b8b7c
Try fixing CI issue w. TokenStream
2022-10-14 14:26:13 +02:00
Felix Schütt
67d650146c
cargo clippy --fix
2022-10-14 13:00:55 +02:00
Felix Schütt
2552aec8b7
Fix "make lint"
2022-09-05 15:27:39 +02:00
Felix Schütt
d1062ae851
Fix "table_get" test again
2022-09-05 14:49:02 +02:00
Felix Schütt
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
Felix Schütt
8eba3c3245
Fix universal_test panicking
2022-09-05 13:24:49 +02:00
Felix Schütt
0f1db67115
Disable table_get test (was not enabled previously)
2022-09-05 12:19:51 +02:00
Felix Schütt
f6c58990d3
Comment out tests that weren't run on JS before
2022-09-05 12:15:39 +02:00
Felix Schütt
d4419020b9
Fix "make lint"
2022-09-02 16:32:09 +02:00
Felix Schütt
416dbfa2b8
Remove ExternRef tests on -js target
2022-09-02 16:27:56 +02:00
Felix Schütt
3a24731985
Use #[universal_test] (PR review)
2022-09-02 16:25:38 +02:00
Felix Schütt
a16215337e
Add initial proc-macro crate
2022-09-02 12:10:27 +02:00
Felix Schütt
12a0261051
Unify tests between -sys and -js API
2022-08-31 14:25:46 +02:00
Felix Schütt
a5d0944b9f
Merge branch 'master' into fix-sync-js-sys-api
2022-08-31 12:57:14 +02:00
Felix Schütt
f2b13f10dd
make test-js passes
2022-08-29 11:35:14 +02:00
Syrus Akbary
e0911a4fe6
Added new_from_js_object method to the Imports object
2022-08-25 17:34:32 +02:00
Syrus Akbary
79b43cb82f
Fix static object signature deserialization
2022-08-17 17:06:23 +02:00
ptitSeb
f7a833a1b1
Re-enable the last 3 ignored tests
2022-08-16 10:35:27 +02:00
ptitSeb
2816b884ad
Re-enabled ExternRef tests
2022-08-12 18:01:54 +02:00
Wolfgang Silbermayr
89bba319a9
No longer require FunctionEnvMut for new_typed(…) callback function
2022-08-05 14:27:44 +02:00
Wolfgang Silbermayr
566c897e57
Remove FunctionEnvMut for Function::new(…)
2022-08-05 14:27:44 +02:00
Wolfgang Silbermayr
7df3e3ca23
Rename {native,typed} functions, reintroduce *_with_env variants
2022-08-05 14:27:44 +02:00
John Sharratt's Shared Account
8ff164036d
Removed uint8view() from the memory API and redundant FunctionEnv in tests
2022-08-02 11:33:49 +10:00
John Sharratt's Shared Account
5aa356f222
Fixed a memory corruption issue with JS memory operations that were reusing invalid views
2022-07-31 20:31:41 +10:00
Syrus Akbary
43138b569c
Rename all mentions from ctx to store
...
Updated tests and examples
Improved a bit the function types and results
2022-07-20 01:55:04 +03:00
Syrus Akbary
a419ccdf52
Move Webassembly objects to Store and remove Context
...
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io >
2022-07-19 15:31:51 +03:00
ptitSeb
d12759f150
Migrated internal samples to new Context API
2022-07-19 15:31:51 +03:00
ptitSeb
267a09ce8e
Migrate compiler tests to the new Context API
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
6c089bbc45
Port JS API to new Context API
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
168e330260
Renamed get_native_function to get_typed_function, marked former as deprecated.
2022-07-19 15:31:51 +03:00
Amanieu d'Antras
738a66f719
Implement the new Context API for the core API
...
Co-authored-by: ptitSeb <sebastien.chev@gmail.com >
2022-07-19 15:31:51 +03:00
ptitSeb
0cd9dfe3e0
Fixed linter warnings/errors
2022-06-15 19:26:57 +03:00
Wolfgang Silbermayr
da4e9fe617
Rename NativeFunc to TypedFunction
...
Closes : #2915
2022-06-08 14:12:51 +03:00
Manos Pitsidianakis
92b7cb01b5
api/js: Replace ImportObject with new type Imports
2022-06-08 14:09:40 +03:00
Manos Pitsidianakis
8aa225a192
api/sys: Replace ImportObject with new type Imports
2022-06-08 14:09:40 +03:00
Amanieu d'Antras
4924a7c22a
Update examples that use RuntimeError::custom to use return a custom
...
error type directly.
2021-12-20 16:27:24 +01:00
Amanieu d'Antras
17c0834abf
Replace RuntimeError::raise with RuntimeError::custom
2021-12-18 00:34:44 +01:00
Syrus Akbary
3319e0f893
Added support for calling dynamic functions defined on the host
2021-08-10 11:07:32 -07: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
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
Mark McCaskey
dea2abb4fc
Add tests, implement for all externs
2021-05-20 10:38:07 -07:00