Commit Graph

551 Commits

Author SHA1 Message Date
Syrus Akbary
1a8952e2fa Improved API based on feedback 2021-07-01 18:29:31 -07:00
Syrus Akbary
20a7136e61 Fixed emscripten 2021-06-24 16:15:44 -07: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
k-nasa
40ee361586 fix favicon 2021-04-24 15:34:44 +09:00
Mark McCaskey
065bfb35bc Fix emscripten table being init'd with externref::null 2021-04-14 07:56:12 -07:00
Mark McCaskey
1e669bef2a Fix UB in setting memory in emscripten EmEnv 2021-04-14 07:51:04 -07:00
Mark McCaskey
8149453ff5 Merge branch 'master' into feature/reference-types 2021-03-31 08:42:26 -07:00
François Garillot
b832de05df Simplifies a few pattern-matches
... which have a direct combinator equivalent on Option / Result.

Tool-aided by [comby-rust](https://github.com/huitseeker/comby-rust).
2021-03-24 07:18:26 -07:00
Mark McCaskey
6e3f835db8 Merge branch 'master' into feature/reference-types 2021-02-10 06:36:36 -08:00
Mark McCaskey
7b8c5b3554 More work on reference types -- wip 2021-02-09 10:54:26 -08:00
Mark McCaskey
6cfcc92d52 Implement further for compiler-cranelift; add ExternRef 2021-02-08 12:49:15 -08:00
Nick Lewycky
9e1cec01be Prepare for 1.0.2 release 2021-02-04 19:44:49 -08:00
Nick Lewycky
91d399e8f4 Apply cleanups proposed by clippy. 2021-01-26 16:02:22 -08:00
Mark McCaskey
924ffd8797 Prepare for 1.0.1 release 2021-01-12 08:08:19 -08:00
Mark McCaskey
6d7bc30261 Improve WasmerEnv, fix emscripten with new features 2021-01-11 12:27:19 -08:00
Mark McCaskey
bc73789cc0 Prepare for 1.0.0 release 2021-01-05 06:21:03 -08:00
Mark McCaskey
34072cbf6f Make WasmPtr::get_utf8_string return String
The old functionality is readded as an `unsafe` method,
`WasmPtr::get_utf8_str`.

It's important to note that `WasmPtr::get_utf8_string` isn't _entirely_
sound and technically should be marked `unsafe` as well, but this change
is a massive improvement over what we had before.

For future reference, the reason `WasmPtr::get_utf8_string` still has some
soundness issues is that we can't guarantee exclusive access to the memory
while parsing in the string, we temporarily hold a `&[u8]` and hope it
doesn't get mutated. It's possible to implement this method in a more
correct way by copying each byte as we read it into a `Vec` and converting
that into a String.
2021-01-04 07:23:08 -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
Mark McCaskey
8081aaeee4 Add WasmerEnv: Sync 2020-12-15 13:43:37 -08:00
Mark McCaskey
6a2116917f Fix up tests, make WasmerEnv: Send 2020-12-15 13:35:19 -08:00
Mark McCaskey
be3c381169 Make NativeFunc Clone 2020-12-09 12:26:53 -08:00
Mark McCaskey
e43d9d2732 Experimental: clone host envs during construction 2020-12-04 16:04:03 -08:00
Mark McCaskey
947e7d394f Prepare for 1.0.0-beta1 release 2020-12-01 17:15:46 -08:00
Mark McCaskey
de6cb9c4c4 Merge branch 'master' into feature/host-env-prototype 2020-11-20 15:54:35 -08:00
Mark McCaskey
84370c7930 Merge branch 'master' into feature/make-env-immutable 2020-11-18 15:40:11 -08:00
Mark McCaskey
3580f165e8 Rename WasmerEnv::finish to WasmerEnv::init_with_instance 2020-11-17 17:14:11 -08:00
Mark McCaskey
2b0464a4b2 Port wasmer-emscripten to use WasmerEnv 2020-11-17 16:19:00 -08:00
Nick Lewycky
49b0a4a16a Prepare for 1.0.0-alpha5 release. 2020-11-06 11:50:07 -08:00
Syrus
2387ec07b6 Upgrade dependencies 2020-10-29 22:59:48 -07:00
Mark McCaskey
608fbdca2a Remove lifetime parameter from NativeFunc
It wasn't doing anything anyways.
2020-10-27 14:37:24 -07:00
jubianchi
2452b9a604 chore(doc): Add the Wasmer logo to the generated API documentation 2020-10-26 22:37:30 +01:00
Mark McCaskey
61c88be863 Prepare for 1.0.0-alpha4 release 2020-10-08 16:47:14 -07:00
Mark McCaskey
facbc78cec Run rustfmt over code 2020-09-30 17:43:40 -07:00
Mark McCaskey
cbe91d7141 Make EmEnv immutable 2020-09-30 17:41:40 -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
Mark McCaskey
7e9d9cab08 Fix memory issue with Emscripten 2020-08-04 18:15:38 -07:00
Syrus
48493bcb52 Fix libc requirement. Fix #207 2020-08-03 12:28:25 -07:00
Syrus
48dd090da6 Updated build links 2020-07-29 17:30:15 -07:00
Syrus
a732159514 Use better naming for module functions 2020-07-26 12:02:45 -07:00
Syrus
79034f069d Improve crate readmes 2020-07-24 15:33:12 -07:00
Syrus
b06f021612 Improved Function API 2020-07-21 20:02:01 -07:00
Syrus
e4163a1eb8 Fixed test compilation 2020-07-13 16:55:35 -07:00