Commit Graph

104 Commits

Author SHA1 Message Date
c6ab1e5f56 feat: Partial support for unnamed packages
* Change PackageId to support both named and unnamed package
* Update the package resolver logic with unnamed package support
* Update the "package download" command
2024-04-09 22:31:26 +02:00
2bdf002dc4 chore: Fix doc comments 2024-01-23 12:27:15 +01:00
968b473b3a chore: Rename Memory::to_shared to as_shared 2024-01-23 12:27:15 +01:00
4dddd90255 tests: Add SharedMemory tests 2024-01-23 12:27:15 +01: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
d4aa42176f Ran "cargo clippy --fix" 2023-05-29 21:15:28 +08:00
fbe784a689 Implement NativeWasmTypeInto for u32 and u64 (#3763)
Add test for passing u64 values between plugin and host

Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
2023-05-17 19:25:02 +02:00
5b642b82cd Merge branch 'master' into fix-negative-i64-return-on-web 2023-05-02 22:13:49 -07:00
4259910956 Fixed api tests 2023-04-26 20:12:12 -07:00
6f0ea570c1 Add pass_i64_between_host_and_plugin test 2023-04-23 11:05:49 +02: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
4822eda78f Got simple tests passing 2023-03-15 20:50:09 -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
ec14a758ac Fixed linting 2023-02-27 10:19:58 +01:00
6f3253e561 Added a universal_test on FunctionEnvMut::data_and_store_mut function 2023-02-24 12:12:30 +01:00
87eb05d6d6 Merge branch 'master' into wasix-core-changes 2023-01-16 09:39:08 +01:00
a4b5ad74f7 Added missing wasm file 2023-01-12 11:20:47 +00:00
382ed04be2 Added support for Wasm Module custom sections in js 2023-01-12 11:05:22 +00:00
cfa3bf4200 Merge remote-tracking branch 'origin/master' into wasix-core-changes 2022-12-22 13:51:14 +01:00
b24025ad01 cargo clippy --fix --all 2022-12-21 00:49:45 +01:00
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
0a1a71fd6e Revert #3145
This reverst buggy commit e1e08f44b7
2022-11-21 11:09:19 -08:00
ba5c1b8b7c Try fixing CI issue w. TokenStream 2022-10-14 14:26:13 +02:00
67d650146c cargo clippy --fix 2022-10-14 13:00:55 +02:00
2552aec8b7 Fix "make lint" 2022-09-05 15:27:39 +02:00
d1062ae851 Fix "table_get" test again 2022-09-05 14:49:02 +02: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
8eba3c3245 Fix universal_test panicking 2022-09-05 13:24:49 +02:00
0f1db67115 Disable table_get test (was not enabled previously) 2022-09-05 12:19:51 +02:00
f6c58990d3 Comment out tests that weren't run on JS before 2022-09-05 12:15:39 +02:00
d4419020b9 Fix "make lint" 2022-09-02 16:32:09 +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
a16215337e Add initial proc-macro crate 2022-09-02 12:10:27 +02:00
12a0261051 Unify tests between -sys and -js API 2022-08-31 14:25:46 +02:00
a5d0944b9f Merge branch 'master' into fix-sync-js-sys-api 2022-08-31 12:57:14 +02:00
f2b13f10dd make test-js passes 2022-08-29 11:35:14 +02:00
e0911a4fe6 Added new_from_js_object method to the Imports object 2022-08-25 17:34:32 +02:00
79b43cb82f Fix static object signature deserialization 2022-08-17 17:06:23 +02:00
f7a833a1b1 Re-enable the last 3 ignored tests 2022-08-16 10:35:27 +02:00
2816b884ad Re-enabled ExternRef tests 2022-08-12 18:01:54 +02:00
89bba319a9 No longer require FunctionEnvMut for new_typed(…) callback function 2022-08-05 14:27:44 +02:00
566c897e57 Remove FunctionEnvMut for Function::new(…) 2022-08-05 14:27:44 +02:00
7df3e3ca23 Rename {native,typed} functions, reintroduce *_with_env variants 2022-08-05 14:27:44 +02:00
8ff164036d Removed uint8view() from the memory API and redundant FunctionEnv in tests 2022-08-02 11:33:49 +10:00
5aa356f222 Fixed a memory corruption issue with JS memory operations that were reusing invalid views 2022-07-31 20:31:41 +10:00
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
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