Commit Graph

814 Commits

Author SHA1 Message Date
Felix Schütt
ada5810b25 Fix various compilation errors on windows 2022-09-15 11:47:20 +02:00
Felix Schütt
94baa50bbf cargo fmt 2022-09-15 11:38:13 +02:00
Felix Schütt
4d1ebda1d2 Undo accidental symlink removal 2022-09-15 11:36:39 +02:00
Felix Schütt
7441fade9c Final fixes for make test-capi on windows-msvc
- .wasm files should always be opened in "rb" mode
- open_memstream doesn't exist on Windows, use tempfile() instead
- remove .obj and .exe files when the test finish
2022-09-14 22:31:19 +02:00
Felix Schütt
fd390f6160 Fix first Makefile completely on Windows 2022-09-14 15:55:41 +02:00
Felix Schütt
05af38c9a5 Port first Makefile to Rust + add MSVC flags 2022-09-14 13:11:48 +02:00
Felix Schütt
328a98edec Fixup Makefile-based tests to be Rust-based instead 2022-09-13 21:34:02 +02:00
Felix Schütt
59eb5f177e Fixed compilation on Windows MSVC (first 20 tests) 2022-09-13 18:58:29 +02:00
Felix Schütt
8da2fdb6a5 Fix Windows build with local dependency 2022-09-13 18:13:54 +02:00
ptitSeb
3528555869 Made Module::serialize to gives Bytes instead of Vec 2022-09-01 17:18:13 +02:00
Manos Pitsidianakis
056268cb58 Bring libwasmer-headless.a from 22MiB to 7.2MiB (on my machine)
By using lto optimization flags.

A qjs.wasm executable using the headless engine now weights 4.6MiB:

% du -sh qjs-he*.out
 20M    qjs-headfull.out
4.6M    qjs-headless.out
2022-08-23 21:44:09 +03:00
Syrus Akbary
bb9f95b2f8 Revert "Lower libwasmer headless size" 2022-08-23 15:04:55 +02:00
Manos Pitsidianakis
57d918e3f5 Bring libwasmer-headless.a from 22MiB to 7.2MiB (on my machine)
By using lto optimization flags.

A qjs.wasm executable using the headless engine now weights 4.6MiB:

% du -sh qjs-he*.out
 20M    qjs-headfull.out
4.6M    qjs-headless.out
2022-08-21 16:19:08 +03:00
Manos Pitsidianakis
45d60884c2 create-exe: add static artifact load feature to libwasmer headless 2022-08-12 18:27:54 +03:00
Manos Pitsidianakis
c570b1471a Bump version to 3.0.0-beta in Cargo manifests 2022-08-08 19:56:35 +03:00
Wolfgang Silbermayr
7df3e3ca23 Rename {native,typed} functions, reintroduce *_with_env variants 2022-08-05 14:27:44 +02:00
Syrus Akbary
dce55432e6 Merge pull request #3052 from john-sharratt/master
Fixed a memory corruption issue with JS memory operations that were r…
2022-08-04 13:44:39 +02:00
Manos Pitsidianakis
83a97f5533 cli: add create-obj command
lib/compiler: read static object
2022-08-03 10:37:45 +03:00
Manos Pitsidianakis
430a7e2e19 Make serde optional everywhere with enable-serde feature flag 2022-08-02 15:45:28 +03:00
Johnathan Sharratt
6074045514 Merge branch 'master' into master 2022-07-31 22:01:38 +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
Felix Schütt
b37029e437 Run cargo fmt 2022-07-30 11:31:10 +03:00
Felix Schütt
5ab5d7f963 Fix typo in map_feature_as_c_define macro 2022-07-30 11:31:10 +03:00
Felix Schütt
9f1845a2d1 Fix clippy lints and "make lint" 2022-07-30 11:31:10 +03:00
Felix Schütt
011d36829a Bump 3.0.0-alpha.3 to 3.0.0-alpha.4 2022-07-30 11:31:08 +03:00
Felix Schütt
1c3ffffe46 Bump 3.0.0-alpha.2 to 3.0.0-alpha.3 2022-07-30 11:30:45 +03:00
Felix Schütt
02ee80cf10 Bump version to 3.0.0-alpha.2 2022-07-30 11:30:07 +03:00
Felix Schütt
6c045bff10 Bump version to 3.0.0-alpha.1 to fix botched compiler crate 2022-07-30 11:29:41 +03:00
Felix Schütt
8959008403 Update version to 3.0.0-alpha 2022-07-30 11:29:05 +03:00
Manos Pitsidianakis
8215b65494 cli: initialize wasienv memory in create-exe 2022-07-29 10:40:31 +03:00
Syrus Akbary
4384ddf9cd Improved EngineBuilder and Store API
- Store::new() now takes an impl Into<Engine>.
- Added Into<Engine> impls in each of the compilers
- Updated docs/migration_to_3.0.0.md on API usage
2022-07-28 15:20:26 +03: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
Manos Pitsidianakis
b15e8c2e4e Refactor last traces of "Universal" nomenclature 2022-07-25 13:23:16 +03:00
Manos Pitsidianakis
4a06b1d3f6 Rename engine's Universal type to Backend
The Universal type was essentially a builder of engines that's given a
compiler backend and creates an Engine with .engine() method. The name
was not clear.
2022-07-25 13:23:13 +03:00
Manos Pitsidianakis
51be5d0860 Rename UniversalEngine to Engine 2022-07-25 13:21:41 +03:00
Manos Pitsidianakis
987a90c0dc Remove Engine trait 2022-07-25 13:19:32 +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
Manos Pitsidianakis
eed0327101 Update c-api examples to Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
62f07efb08 c-api: Add wasm_*_same functions to global,memory,table 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
34a6511e16 Port C API to new Context API 2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
0417111ada lib/c-api: update cbindgen dependency 2022-07-19 15:31:51 +03:00
ptitSeb
d3d363bab2 Migrated WASI and WAST to Wasmer 3.0 API
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
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
Tom Parker-Shemilt
c55cee41a5 Upgrade enumset minimum version to one that compiles 2022-06-29 20:32:29 +03:00
Manos Pitsidianakis
f744bac1a2 Store: replace new() with new_with_engine() and make new() take CompilerConfig
Since there's one engine now, it doesn't make sense to initialize a
`Store` with the engine specifically. It's an extra redundant step for
the API user.
2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
086205bfcc Remove wasmer_engine_universal{,_artifact} and merge into wasmer_compiler 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
a6173f9746 Remove wasmer-{artifact,engine} and merge it into wasmer-compiler and wasmer-vm 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
feee4e3587 Move wasmer_compiler errors to wasmer_types error module 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
8be0089893 Remove engine-staticlib 2022-06-16 16:57:45 +03:00