Commit Graph

200 Commits

Author SHA1 Message Date
ptitSeb
844a649629 Switched to wasmer-wasix instead of wasmer-wasi in doc 2023-04-17 14:58:50 +02:00
ptitSeb
688b01825a [DOC] Removed paragraph about default-compiler, as it's doesn't exist anymore 2023-04-17 14:55:20 +02:00
Michael-F-Bryan
6b624af5d4 Fixed some broken links that caused "cargo doc" to fail 2023-03-22 01:23:35 +08:00
ptitSeb
4059e66fb1 Fix doc build (#3668) 2023-03-08 13:40:37 +00:00
Syrus Akbary
acd0f1fcd3 Merge branch 'master' into std-api
# Conflicts:
#	lib/api/src/js/mem_access.rs
#	lib/api/src/lib.rs
#	lib/api/src/mem_access.rs
#	lib/api/src/ptr.rs
2023-03-05 20:25:51 -08:00
Johnathan Sharratt
09dcef2b70 Merge remote-tracking branch 'origin' into zero-mem-copy 2023-03-03 17:58:07 +11:00
Johnathan Sharratt
f1c31c65ca All IO operates are now zero copy when on non-browsers while browsers still copy bytes 2023-03-03 16:04:09 +11:00
Syrus Akbary
cbdf356c0b Merge branch 'std-api' into wasix-fixes-for-web-with-unification
# Conflicts:
#	lib/api/src/js/externals/global.rs
#	lib/api/src/js/vm.rs
#	lib/wasi/src/bin_factory/exec.rs
#	lib/wasi/src/bin_factory/module_cache.rs
#	lib/wasi/src/runtime/task_manager/mod.rs
2023-03-01 21:16:18 -08:00
Maxime
51b22145d4 Remove unused import in lib.rs example
`FunctionEnv` isn't used in the demo code.
2023-03-01 13:44:13 +01:00
Syrus Akbary
5faa0364fc Improved module imports 2023-02-15 18:24:45 -08:00
Syrus Akbary
99d3f84590 Simplified errors 2023-02-15 18:02:22 -08:00
Syrus Akbary
b4c190bf72 Unified Function into js/sys 2023-02-15 13:17:28 -08:00
Syrus Akbary
3b0ee715f7 Created vm module 2023-02-13 17:05:46 -08:00
Syrus Akbary
db6430c0b3 Unified Extern in js/sys 2023-02-11 19:32:01 -08:00
Syrus Akbary
1d85b301ef Moved reexports one level down 2023-02-11 18:35:03 -08:00
Syrus Akbary
3d56b6bdd6 Unify Instance in js/sys 2023-02-11 18:07:47 -08:00
Syrus Akbary
58f27ae045 Unify InstantiationError 2023-02-11 17:41:53 -08:00
Syrus Akbary
4eaddb5ce4 Unify Imports in wasmer js/sys 2023-02-10 18:16:05 -08:00
Syrus Akbary
7d9ed6b67a Unified typed_function in js/sys 2023-02-10 17:11:23 -08:00
Syrus Akbary
1e405d3e22 Unified exports in js/sys 2023-02-10 16:29:28 -08:00
Syrus Akbary
a5e631c176 Unified Value into js/sys 2023-02-10 16:20:47 -08:00
Syrus Akbary
c3576e1b3f Unified ptr::WasmPtr into js/sys 2023-02-10 16:03:43 -08:00
Syrus Akbary
a1d3891c1f Unify native_type::NativeWasmTypeInto in js/sys 2023-02-10 15:55:09 -08:00
Syrus Akbary
0dda3c1e65 Unified extern_ref in js/sys 2023-02-10 15:26:57 -08:00
Syrus Akbary
543e7cb945 Make CI happy. Fix linting and imports 2023-02-10 08:05:07 -08:00
Syrus Akbary
5a829bc363 Unify mem_access api for js/sys 2023-02-09 17:59:30 -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
Syrus Akbary
d09a76ec5f Use standard API for js and sys for Module. Added Engine in js 2023-01-27 17:10:54 +01:00
Albert Nicolas
7ab9eb233e Fix JS sample code by adding "&mut store"
`Instance::new` and `.call` need `&mut store` as first argument in order to compile.
2023-01-18 10:50:46 +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
Wolfgang Silbermayr
89bba319a9 No longer require FunctionEnvMut for new_typed(…) callback function 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
5aa356f222 Fixed a memory corruption issue with JS memory operations that were reusing invalid views 2022-07-31 20:31:41 +10:00
Manos Pitsidianakis
214346af3b Merge Backend into EngineBuilder and refactor feature flags 2022-07-27 21:03:24 +03:00
Manos Pitsidianakis
924d2dcf4e Remove Universal mentions from cargo features 2022-07-25 14:45:27 +03: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
ptitSeb
de384bb9cc Fixed residual package-doc issues 2022-07-19 15:25:24 +02: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
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
Manos Pitsidianakis
8be0089893 Remove engine-staticlib 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
e9d54e130c Remove engine-dylib 2022-06-16 16:57:45 +03:00
Wolfgang Silbermayr
5339f7cdae Fix clippy lints
Fixes: #2926
2022-06-09 16:05:53 +02:00
Wolfgang Silbermayr
da4e9fe617 Rename NativeFunc to TypedFunction
Closes: #2915
2022-06-08 14:12:51 +03:00
Manos Pitsidianakis
8aa225a192 api/sys: Replace ImportObject with new type Imports 2022-06-08 14:09:40 +03:00
Manos Pitsidianakis
77af8ba634 Fix some clippy lints
Before:
```
% make lint 2>&1 | grep warnings | sort | uniq
error: could not compile `wasmer-cli` due to previous error; 25 warnings emitted
warning: `compiler-test-derive` (lib) generated 8 warnings
warning: `test-generator` (lib) generated 4 warnings
warning: `wasi-test-generator` (bin "wasi-test-generator") generated 8 warnings
warning: `wasmer-cache` (lib) generated 4 warnings
warning: `wasmer-cli` (lib) generated 25 warnings
warning: `wasmer-compiler-cranelift` (lib) generated 50 warnings
warning: `wasmer-compiler-singlepass` (lib) generated 228 warnings
warning: `wasmer-compiler` (lib) generated 3 warnings
warning: `wasmer-emscripten` (lib) generated 182 warnings
warning: `wasmer-engine-dummy` (lib) generated 6 warnings
warning: `wasmer-engine-dylib` (lib) generated 37 warnings
warning: `wasmer-engine-staticlib` (lib) generated 16 warnings
warning: `wasmer-engine-staticlib` (lib) generated 7 warnings
warning: `wasmer-engine-universal` (lib) generated 11 warnings
warning: `wasmer-engine` (lib) generated 15 warnings
warning: `wasmer-object` (lib) generated 5 warnings
warning: `wasmer-types` (lib) generated 31 warnings
warning: `wasmer-vfs` (lib) generated 4 warnings
warning: `wasmer-vm` (lib) generated 40 warnings
warning: `wasmer-wasi-experimental-io-devices` (lib) generated 11 warnings
warning: `wasmer-wasi-types` (lib) generated 3 warnings
warning: `wasmer-wasi` (lib) generated 13 warnings
warning: `wasmer-wast` (lib) generated 11 warnings
warning: `wasmer` (lib) generated 54 warnings
```

After:
```
warning: `wasmer-cli` (lib) generated 16 warnings
warning: `wasmer-compiler-cranelift` (lib) generated 48 warnings
warning: `wasmer-compiler-singlepass` (lib) generated 213 warnings
warning: `wasmer-emscripten` (lib) generated 170 warnings
warning: `wasmer-engine-dummy` (lib) generated 6 warnings
warning: `wasmer-engine-dylib` (lib) generated 4 warnings
warning: `wasmer-engine-staticlib` (lib) generated 14 warnings
warning: `wasmer-engine-staticlib` (lib) generated 5 warnings
warning: `wasmer-engine-universal` (lib) generated 9 warnings
warning: `wasmer-engine` (lib) generated 12 warnings
warning: `wasmer-object` (lib) generated 3 warnings
warning: `wasmer-types` (lib) generated 7 warnings
warning: `wasmer-vm` (lib) generated 36 warnings
warning: `wasmer-wasi-experimental-io-devices` (lib) generated 6 warnings
warning: `wasmer-wasi-types` (lib) generated 3 warnings
warning: `wasmer-wasi` (lib) generated 9 warnings
warning: `wasmer-wast` (lib) generated 9 warnings
warning: `wasmer` (lib) generated 42 warnings
```
2022-04-20 18:25:04 +03:00
Ivan Enderlin
3239fe4f6d doc(api) Improve the crate documentation. 2021-07-23 16:14:44 +02:00
Ivan Enderlin
fcc9e741c3 feat(api) Set crate-type only if js feature is turned on. 2021-07-23 15:06:28 +02:00