Commit Graph

121 Commits

Author SHA1 Message Date
Amanieu d'Antras
fb7a572415 Use exact version for Wasmer crate dependencies
We don't guarantee API compatibility between internal Wasmer crates when
making minor version bumps.
2022-01-19 21:35:09 +00:00
Amanieu d'Antras
ebcea4a5c4 Release v2.1.1 2021-12-21 12:19:50 +01:00
Amanieu d'Antras
c650ffea33 Version 2.1.0 2021-11-30 23:46:54 +00:00
Syrus Akbary
62c467bcee Updated blake3 2021-08-20 12:33:03 -07:00
bors[bot]
baebb436e2 Merge #2460
2460: Added Wasmer Js API r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

This PR adds support for compiling Wasmer into JS/Wasm via wasm-bindgen, so 3rd party dependencies can use Wasmer to target the web also.

Things working:
* [x] Type introspection: we have to decide how to do it, either run our own parser on the data or rely on the future APIs for introspect Wasm types (this APIs are yet available in the browser, but a proposal is on the way: [wasm-js-types proposal](https://github.com/WebAssembly/js-types)).
* [x] Wasm-pack wasmer-js tests
* [x] Assert 0 warnings in lint
* [x] Allow for custom JS errors (via `RuntimeError`)
* Externals
   * [x] Functions with and without Environments
      * [x] Native functions
      * [x] Dynamic functions
   * [x] Memory
   * [x] Globals
   * [x] Tables

# Review


- [ ] Add a short description of the change to the CHANGELOG.md file


Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2021-07-23 23:23:59 +00:00
Ivan Enderlin
36c4f92dad fix(api) Use the sys feature when no default features is enabled. 2021-07-23 13:52:02 +02:00
chenyukang
fc40b23b5c print more detailed message for cache directory creation 2021-07-16 13:30:49 +08:00
Mark McCaskey
0c0fdad3d2 Prepare for 2.0.0 release 2021-06-15 11:26:46 -07:00
Mark McCaskey
80a8658e5a Prepare for 2.0.0-rc2 release 2021-06-03 09:19:16 -07:00
Mark McCaskey
cfc1a5fc26 Fix typo 2.0.0-rc -> 2.0.0-rc1 2021-06-02 08:32:46 -07:00
Mark McCaskey
2897a5b05e Bump version number to 2.0.0-rc1 2021-06-02 08:21:34 -07:00
Syrus Akbary
b520a5f58a Renamed wasmer_wasm.h to wasmer.h 2021-06-01 21:47:37 -07:00
Ivan Enderlin
3d66a2e360 feat: Rename wasmer-engine-native to wasmer-engine-dylib. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
79d5f20301 feat: Rename wasmer-engine-native to wasmer-engine-shared-object. 2021-05-28 14:13:24 +02:00
Ivan Enderlin
e5a784a006 feat: Rename wasmer-engine-jit to wasmer-engine-universal.
This (small) patch renames the `wasmer-engine-jit` crate into
`wasmer-engine-universal`.
2021-05-25 16:12:06 +02:00
Bo Yao
dadc81296a cargo fmt 2021-04-21 16:06:12 -07:00
Bo Yao
24bcc9349e cargo fmt 2021-04-21 15:42:47 -07:00
Bo Yao
c52e5d65bf fix cargo-deny 2021-04-21 10:21:12 -07:00
Bo Yao
204c37ce8e cargo fmt 2021-03-22 17:10:12 -07:00
Bo Yao
ef57fe9127 bench inside deserialization process 2021-03-10 16:36:36 -08:00
Nick Lewycky
9e1cec01be Prepare for 1.0.2 release 2021-02-04 19:44:49 -08:00
Mark McCaskey
924ffd8797 Prepare for 1.0.1 release 2021-01-12 08:08:19 -08:00
Mark McCaskey
bc73789cc0 Prepare for 1.0.0 release 2021-01-05 06:21:03 -08:00
Mark McCaskey
2d1c03bea0 Prepare for 1.0.0-rc1 release 2020-12-23 11:17:07 -08:00
Mark McCaskey
59df6917d8 Prepare for 1.0.0-beta2 release 2020-12-16 07:41:59 -08:00
Simon Warta
ae7ec9da3b Remove unused dependency memmap 2020-12-14 01:42:03 +01:00
Simon Warta
fcf5de178e Fix description of Hash::new 2020-12-12 15:40:40 +01:00
Simon Warta
0ef1039018 Change Hash::into_array -> to_array 2020-12-12 15:40:40 +01:00
Simon Warta
830f6a2d1d Avoid unnecessary cast 2020-12-12 15:40:40 +01:00
Simon Warta
4d8e4788fe Test and simplify Hash::into_array 2020-12-12 15:40:36 +01:00
Mark McCaskey
947e7d394f Prepare for 1.0.0-beta1 release 2020-12-01 17:15:46 -08:00
Nick Lewycky
49b0a4a16a Prepare for 1.0.0-alpha5 release. 2020-11-06 11:50:07 -08:00
Nick Lewycky
986682e12f Fix cargo test -p wasmer-{cache,engine} and add them to make test-packages. 2020-10-27 13:07:57 -07:00
Mark McCaskey
61c88be863 Prepare for 1.0.0-alpha4 release 2020-10-08 16:47:14 -07:00
Mark McCaskey
ead9532004 Prepare for 1.0.0-alpha3 release 2020-09-14 13:12:56 -07:00
Syrus
2cd12213fb Standardize Cargo files of all crates 2020-09-13 22:11:16 +03:00
Mark McCaskey
1ee2ba30a2 Prepare for 1.0.0-alpha02.0 release 2020-09-11 14:40:25 -07:00
Mark McCaskey
e06ca4ffd2 Prepare for 1.0.0-alpha01.0 release
This is the first alpha release of `1.0.0`: expect breaking changes.

The version suffix `alpha01.0` was chosen so that we can ship updates
that automatically update with the latter number and can prevent
auto-updates by incrementing the former number (which is not actually
a number as far as semver is concerned).

Also because crates.io sorts versions lexicographically, it will
display the wrong readme if we get to alpha10, so we pad with an extra
0 just in case we need more than 9 releases of alpha.
2020-08-14 16:08:44 -07:00
Nick Lewycky
fadd5d6699 Remove nearly-all mentions of reborn. 2020-08-13 11:32:14 -07:00
Syrus
48dd090da6 Updated build links 2020-07-29 17:30:15 -07:00
Syrus
79034f069d Improve crate readmes 2020-07-24 15:33:12 -07:00
Ivan Enderlin
1af475978e feat(cache) blake3 is no longer optional.
Without `blake3`, the crate doesn't compile as `blake3` is required by
`Hash::generate`. This function doesn't accept another hash for the
moment.
2020-07-23 12:48:15 +02:00
Syrus Akbary
dd3ba5a4bb Merge pull request #153 from wasmerio/feat-cache-wasmhash
feat(cache) `WasmHash` becomes more general, and is renamed `Hash`
2020-07-21 12:37:06 -07:00
Ivan Enderlin
4384f8735c Update lib/cache/README.md
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-07-21 09:56:30 +02:00
Ivan Enderlin
274657eb0e Update lib/cache/README.md
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-07-21 09:56:24 +02:00
Ivan Enderlin
6f0937fd03 Update lib/cache/src/filesystem.rs
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-07-21 09:56:17 +02:00
Ivan Enderlin
e820ec7985 Update lib/cache/src/filesystem.rs
Co-authored-by: Syrus Akbary <me@syrusakbary.com>
2020-07-21 09:56:08 +02:00
Nick Lewycky
635f8a4284 Remove references to non-existant clippy.toml. 2020-07-10 14:49:37 -07:00
Ivan Enderlin
a5a5e997a3 doc(cache) Improve the README.md with an example. 2020-07-10 16:20:04 +02:00
Ivan Enderlin
62da7d28cc feat(cache) Update WasmHash to Hash. 2020-07-10 16:19:49 +02:00