Commit Graph

122 Commits

Author SHA1 Message Date
Felix Schütt
8ee578fb5d Update package versions 2022-10-25 12:54:45 +02:00
Felix Schütt
b645800ae3 Fix runtime size for Memory 2022-10-14 14:39:24 +02:00
Felix Schütt
ad1f4fea05 cargo fmt 2022-10-14 14:12:52 +02:00
Felix Schütt
607050641c Added get_runtime_size to test for runtime-sizes of imports 2022-10-14 14:08:25 +02:00
Felix Schütt
292ec7aade Try using >= as a comparison for checking table sizes 2022-10-14 12:36:19 +02:00
Felix Schütt
8340a4beed Merge branch 'master' into wasi-types-generation-2 2022-09-27 17:14:37 +02:00
Felix Schütt
fef756412f Update 3.0.0-beta -> 3.0.0-beta.2 2022-09-26 12:20:35 +02:00
Felix Schütt
04bddcb9fc Merge branch 'master' into silwol/wasi-types-generation 2022-08-31 10:45:00 +02:00
Wolfgang Silbermayr
aa8d6fa94f Tty 2022-08-25 18:43:49 +02:00
Felix Schütt
6988025cd0 Fix make lint 2022-08-23 15:24:13 +02:00
Felix Schütt
9ea5c941b4 Prevent more panics in Artifact::deserialize 2022-08-23 14:56:07 +02:00
Felix Schütt
e2daf4f597 Test metadata slice len before accessing to prevent panic 2022-08-23 14:39:28 +02:00
ptitSeb
553745cd3d Move LinearMemory trait and VMMemoryDefinition to wasmer_vm (from wasmer_types) 2022-08-19 16:00:38 +02:00
ptitSeb
85a697f7cc Merge branch 'master' into feat_linearmemory_trait 2022-08-18 17:46:15 +02:00
Manos Pitsidianakis
1756456d6c Refactor Artifact enum into a struct
Closes #3063

Refactor Artifact type from enum to struct #3063 https://github.com/wasmerio/wasmer/issues/3063
2022-08-18 18:19:44 +03:00
ptitSeb
f599df0240 Fix linter 2022-08-18 16:58:04 +02:00
John Sharratt's Shared Account
c7c1507b8b Implemented LinearMemory trait 2022-08-18 16:53:37 +02:00
Manos Pitsidianakis
c570b1471a Bump version to 3.0.0-beta in Cargo manifests 2022-08-08 19:56:35 +03:00
Manos Pitsidianakis
ba543fc4f7 Add support for cross-compiling in create-exe with zig cc WIP (#3076)
* Add support for cross-compiling in create-exe with zig cc WIP

zig version must be at least 0.10.0-dev.3431+4a4f3c50c

Closes #3042

* Add support for cross-compiling in create-exe with zig cc WIP

zig version must be at least 0.10.0-dev.3431+4a4f3c50c

Closes #3042

* Add SSE2 features to the CPU

* Add SSE2 features to the CPU

* create_exe: locate zig binary and check minimum version

Check that `zig` binary version is at least `0.10.0`

* create-exe: refactor cross-comp cli parsing and error checks

* create-exe: add -lunwind for cross-comp with zig

* Set the proper library for windows

* create-exe: add path exists check for --tarball value

* create-exe: add -msvc environment in triple_to_zig_triple()

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2022-08-08 15:32:15 +02:00
Manos Pitsidianakis
1ad352610a create-exe: fix linking for macos 2022-08-03 14:54:56 +03: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
Manos Pitsidianakis
14ee38a24e compiler: move Symbol, SymbolRegistry to wasmer-types 2022-08-02 15:45:28 +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
a02ff59a0f cli: re-introduce create-exe functionality 2022-07-29 10:40:23 +03:00
Manos Pitsidianakis
c2ecb99142 Rename UniversalArtifact to Artifact 2022-07-25 13:21:43 +03:00
Manos Pitsidianakis
187d2e6364 Remove Artifact trait
In favor of using UniversalArtifact everywhere
2022-07-25 13:13:52 +03:00
Manos Pitsidianakis
37773f29d7 Store/create Arc<ModuleInfo> in Module on Instantiation
Instead of accessing Arc<ModuleInfo> from the artifact a module was
instantiated from, create a copy from it in each instantiated module.
2022-07-25 13:13:52 +03:00
Manos Pitsidianakis
0bf94d6276 Move SerializableModule, SerializableCompilation to wasmer_types 2022-07-25 13:13:52 +03:00
Manos Pitsidianakis
3ae0fb9581 wasmer_types: use #[archive(as = "Self")] as much as possible 2022-07-25 13:13:52 +03:00
ptitSeb
fec2e5fa51 Added back some needed relocation for arm64 llvm compiler 2022-07-20 11:45:17 +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
Amanieu d'Antras
9e53e70767 Rework the way the Context is passed into function using it 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
Amanieu d'Antras
f16bd35d3c Remove old ref-counted extern support from compiler-cranelift
It was never fully implemented and we're moving to a different way of
tracking ExternRef lifetimes.
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
8f539d134b Move wasmer_compiler/{address_map, function, module, sourceloc, trap, unwind}.rs to wasmer_types 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
b1f1939bf7 Move wasmer_compiler/{section,relocation}.rs to wasmer_types 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
699bd3f8ca Update rkyv dependency to 0.7.38 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
4a80830566 lib/types: remove ArchivableIndexMap struct
rkyv supports IndexMap via a feature flag, so having our own IndexMap
type is unnecessary.
2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
065734bb05 Make rkyv dependency required 2022-06-16 16:57:45 +03:00
ptitSeb
0cd9dfe3e0 Fixed linter warnings/errors 2022-06-15 19:26:57 +03:00
ptitSeb
3e9de243a5 Fix lint warnings/errors 2022-06-15 19:26:57 +03:00