81 Commits

Author SHA1 Message Date
Joseph Richey
5c1bb00b74
Release v0.2.8 (#294)
Also updates the changelog

Signed-off-by: Joe Richey <joerichey@google.com>
2022-10-20 13:53:06 -07:00
Joseph Richey
63f861c684
Release v0.2.7 (#264)
Signed-off-by: Joe Richey <joerichey@google.com>
2022-06-13 14:31:59 -07:00
Thomas de Zeeuw
2d65a40cc5
Update to wasi 0.11 (#253)
* Update to wasi 0.11

The main breaking change between v0.10 and v0.11 is that Error is
removed in favour of Errno. Unfortunately we can't create an Errno from
outside the wasi create so we're loosing some debug information for
errors.

I've opened an issue to add back such a constructor, see
<https://github.com/bytecodealliance/wasi/issues/64>.

* Use libc::strerror to get the error message on wasi

Since wasi v0.11 doesn't (yet) provided a way to create Errno, see
<https://github.com/bytecodealliance/wasi/issues/64>.

* Remove libc dependency for WASI

This does mean that we won't get an error message for the error type.
2022-04-15 02:20:44 -07:00
Артём Павлов [Artyom Pavlov]
2630158149 Release v0.2.6 2022-03-26 01:09:35 +03:00
Mark Drobnak
d40ec2c7e4
Add support for the Nintendo 3DS (armv6k-nintendo-3ds) (#248) 2022-03-25 16:26:05 +00:00
Artyom Pavlov
cd3a987b9b
Release v0.2.5 (#247) 2022-02-22 12:09:08 +00:00
Artyom Pavlov
b9c7c0c13d
Release v0.2.4 (#238) 2022-01-13 21:46:24 +00:00
Artyom Pavlov
de51e2961d
Release v0.2.3 (#211) 2021-05-20 08:00:44 +00:00
Artyom Pavlov
d79de0c95c
Release v0.2.2 (#201) 2021-01-19 12:34:27 +00:00
Артём Павлов [Artyom Pavlov]
69634b700e Use doc_cfg to improve register_custom_getrandom docs 2021-01-18 01:00:23 +03:00
Joe Richey
3661e9dc2a
Properly forward rustc-dep-of-std feature
Signed-off-by: Joe Richey <joerichey@google.com>
2021-01-17 00:28:36 -08:00
Artyom Pavlov
6c94834850
Remove outdated entries from Cargo.toml (#193) 2021-01-03 20:43:15 -08:00
Artyom Pavlov
95be9b40b4
Release v0.2.1 (#188)
Updates Changelog to include v0.1.16 changes as well
2021-01-03 19:52:26 -08:00
Artyom Pavlov
77740f8c45
remove direct stdweb support (#178) 2021-01-02 02:54:25 -08:00
Jurgis
c29dd5f80e
Fix multithreaded wasm crash (solves #164) (#165)
Signed-off-by: Joe Richey <joerichey@google.com>
2020-10-26 13:41:31 -07:00
koushiro
3a7e605345 Update wasi to 0.10
Signed-off-by: koushiro <koushiro.cqx@gmail.com>
2020-10-15 23:11:33 -07:00
Matt Brubeck
7dd681ec08 Update to cfg-if 1.0 2020-10-15 22:25:36 -07:00
Joe Richey
99260dfaef Update docs for 0.2
The main things here are clarifying how fallback functionatliy works.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-09-10 00:45:13 -07:00
Joe Richey
4d750dd240 travis: Enable Firefox testing
https://github.com/rustwasm/wasm-bindgen/pull/2305 released the bugfix for wasm-bindgen.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-09-09 00:53:31 -07:00
Joe Richey
11b4f9e406 wasm: Update testing framework
Add back the "test-in-browser" feature. This makes it easier to manage
a single file containing all of the test code.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-29 01:11:13 -07:00
Joe Richey
eacffd578a wasm: Move JS-based Custom RNGs back into the main crate
They will be gated behind the "js" feature, as we can now do detect,
at compile-time, which implementation (wasm-bindgen vs stdweb) we
should use.

The "js" implementation takes precedence over the "custom"
implementation. This prevents issues that arise from the buggy way
Cargo handles features across multiple targets.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-29 01:11:13 -07:00
Joe Richey
6aba12ccdb Rename "cpu" feature to "rdrand"
Signed-off-by: Joe Richey <joerichey@google.com>
2020-05-28 19:03:02 -07:00
Joe Richey
ff6299dd77 cpu: Add support for CPU-based randomness
This allows freestanding targets to use getrandom.

Signed-off-by: Joe Richey <joerichey@google.com>
2020-02-19 10:21:58 -08:00
Joe Richey
8365277450 custom: Add Custom RNG for wasm-bindgen 2020-01-10 09:16:20 +00:00
Joe Richey
7d558f1cc3 custom: Add custom RNG for stdweb 2020-01-10 09:16:20 +00:00
Joe Richey
3d7a7b5f06 Remove built-in support for wasm32-unknown-unknown 2020-01-10 09:16:20 +00:00
Joe Richey
448bcac6b1 custom: Add support for Custom RNGs 2020-01-10 09:16:20 +00:00
Joseph Richey
d6b75d1c05
log: Remove optional log dependancy (#131)
This feature isn't enabled by rand/rand_core and provides very little
error information that isn't already conveyed through our Error values.

This also simplifies the supported configuration space for getrandom.
We update the docs and CI to match this change.
2020-01-09 13:27:09 -08:00
Joe Richey
0f14f2a186 Merge branch 'master' into 0.2
Signed-off-by: Joe Richey <joerichey@google.com>
2020-01-08 11:11:08 -08:00
Artyom Pavlov
33b859bae1
Prepare release v0.1.14 (#128) 2020-01-07 12:05:23 +00:00
Joseph Richey
48781cd9ec wasi: Update and Fix Travis failures (#126) 2020-01-05 20:59:50 +00:00
Joseph Richey
8096bac100 0.2: Error and Testing improvements (#120) 2019-10-28 08:06:05 +00:00
Artyom Pavlov
d661aa7e1b
Prepare release v0.1.13 (#118) 2019-10-25 12:25:33 +00:00
Joe Richey
1f1f964e4a Merge branch 'master' into 0.2 2019-10-24 02:10:00 -07:00
Artyom Pavlov
9a385f1923
Add VxWorks support (#86) 2019-10-23 09:35:50 +00:00
Joseph Richey
add45a3899 Remove dummy implementation (#107)
Removes the “dummy” feature and “wasm32-unknown-unknown” dummy impl
2019-10-15 23:40:05 -07:00
David Kellum
2052159fd1 cfg-if 0.1.2 needed as minimal version of dep 2019-09-30 14:06:16 -07:00
Joseph Richey
fa6f929aed
Improve CI for web targets (#108)
* Simplify CI process for WASM

Run WASI tests, and run both stdweb/wasm-bindgen on both node and in browsers

These changes also remove the need for a separate tests/wasm_bindgen

* Use all pre-built binaries in the CI

* Fix Cargo.toml typo

Co-Authored-By: Artyom Pavlov <newpavlov@gmail.com>

* Fix install location

* Debug CI
2019-09-21 01:46:26 -07:00
Artyom Pavlov
5cfa668403
Prepare release v0.1.12 (#103) 2019-09-06 12:01:01 +00:00
Artyom Pavlov
31e5b2fdd6
Update wasi dependency (#100) 2019-08-31 14:32:18 +00:00
Artyom Pavlov
208b318ace
Prepare release v0.1.11 (#97) 2019-08-25 02:28:06 +00:00
Joseph Richey
4db1b14074
Fix Redox CI (#85)
* Fix Redox CI

* Bump libc version to fix Redox
2019-08-24 19:23:36 -07:00
Artyom Pavlov
a9b7f92965
Prepare release v0.1.10 (#93) 2019-08-17 23:27:45 +00:00
Joseph Richey
3d1d2ff313 Wasi does not need libc (#88) 2019-08-15 00:10:22 +00:00
Artyom Pavlov
e266249f61
Prepare release v0.1.9 (#83) 2019-08-14 13:55:27 +00:00
Artyom Pavlov
7449a087f2
Add dummy feature (#71) 2019-08-08 14:31:41 +00:00
Artyom Pavlov
86c2cd6265
Use wasi isntead of libc (#64) 2019-08-08 08:02:19 +00:00
Joseph Richey
98934cb4ab Add rustc-dep-of-std feature (#78) 2019-08-06 10:08:16 +00:00
Joseph Richey
b69f832210 Remove libstd dependancy for Opening and Reading files (#58) 2019-08-06 10:07:22 +00:00
Artyom Pavlov
199b11576e
prepare release v0.1.8 (#76) 2019-08-05 09:02:19 +00:00