Commit Graph

206 Commits

Author SHA1 Message Date
daxpedda
fe8bc949b5
Prepare v0.2.91 release (#3829) 2024-02-06 12:37:22 +01:00
Gabriel Grant
adcf7786d1
Bump versions & update changelog for 0.2.90 release (#3763) 2024-01-12 16:59:28 +01:00
GitHub Actions
ab336aad0c bump 2023-11-27 16:20:02 +01:00
Muhammad Hamza
0b5f0eec2f
Bump versions for v0.2.88 (#3676)
* bump

* Bump version in changelog

* Bump date in changelog

Co-authored-by: Liam Murphy <liampm32@gmail.com>

---------

Co-authored-by: GitHub Actions <actions@github.com>
Co-authored-by: daxpedda <daxpedda@gmail.com>
Co-authored-by: Liam Murphy <liampm32@gmail.com>
2023-11-01 20:35:23 +05:00
Matthijs van Duin
cb64552c1f
use Vec's try_reserve_exact method (#3656) 2023-10-14 02:59:22 +05:00
Andrea Frigido
74bfc1f85e
Update license field following SPDX 2.1 license expression standard (#3529) 2023-07-19 10:57:34 +02:00
daxpedda
f0a8ae3b99
Bump to 0.2.87 (#3475) 2023-06-12 14:25:14 -05:00
Lukas Lihotzki
85f72c9125
Clippy: Fixes and CI (#3300) 2023-05-17 12:02:02 +02:00
Alex Crichton
2d882c97b0
Bump to 0.2.86 (#3429) 2023-05-15 17:25:39 -05:00
Melanie Riise
a459f5abf2
bump version (#3400)
Co-authored-by: Alex Crichton <alex@alexcrichton.com>
2023-05-09 09:15:50 -05:00
daxpedda
8994cb94da
Update cargo dependency resolver to v2 (#3358) 2023-05-08 10:19:24 -05:00
Kristoffer Søholm
1aee7e8e27
Fix large pointers from WASM (#3310)
Pointers being passed from WASM to JS are interpreted as signed, so
large pointers ended up negative. This prevented WASM programs from
allocating more than 2GB.

To fix it we make all pointers unsigned (via >>> 0) for all malloc/realloc
calls and inside shim functions. Ideally we would have an abstraction
that guarantees we catch all cases, but that would require a major
refactor.

To test it we add gg-alloc as an optional system allocator for
wasm-bindgen-test. It only allocates in the upper 2GB range and was made to
test this exact issue but was never upstreamed.

Fixes #2388
Fixes #2957
2023-02-17 09:10:06 -06:00
Alex Crichton
cea8cc3d29
Bump to 0.2.84 (#3274)
Closes #3267
2023-02-01 11:06:50 -06:00
Michael Rosenberg
eba691f38c
Bumped crate versions (#3079)
* Added example-tests to the crate nopublish list

* Bumped crate versions
2022-09-12 09:26:21 -05:00
Lukas Lihotzki
d881d9da64
Add example with WASM audio worklet (#3017) 2022-08-13 20:12:17 +10:00
Liam Murphy
643a773429
Test examples in CI (#3015)
* Add a test that examples don't throw any errors

TODO:
- run all the tests, not just the ones which use webpack (also an issue with CI)
- fix webxr test
- run in CI
- share WebDriver instance between tests
- maybe ditch async, since we don't really need it here and it adds a bunch of dependencies and build time.

* Disable testing WebXR example

It isn't supported in Firefox yet, which is where we're running our tests.

* Test examples that aren't built with webpack

* Remove `WEBDRIVER` environment variable

It wouldn't have worked anyway because at least for the moment, I'm using one WebDriver session per test, and Firefox at least only allows one session to be connected.

I would like to make them share a session, in which case I could add this back, but I can't right now because Firefox hasn't implemented `LogEntry.source` yet, which is needed to figure out which log entries should fail which tests.

* Run in CI

* Use `Once` instead of `Mutex`

* Build `webxr` and `synchronous-instantiation` in CI

Although we can't test them, we can still build them.

* Add missing '`'

* Fix running of tests

* Only include dev deps when not compiling for wasm

* oops, those are the native tests

* Create build dirs before copying to them

* Install binaryen

* decompress

* Follow redirects

* Set `PATH` properly

* Use an absolute path

* Don't symlink `node_modules` and fix artifact download

* Enable `web_sys_unstable_apis`

This is needed for the `webxr` example.

* Increase timeout to 10s

* Increase timeout to 20s

This seems excessive but 10s is still sometimes failing.

* Disable testing the webgl example

* Add binaryen to PATH directly after installing

* Properly download the raytrace example artifacts

* Disable example tests instead of enabling everything else

* Move to a separate `example-tests` crate
2022-08-05 10:51:41 -05:00
GalvinGao
59883eaca6
Bump to 0.2.82 (#3002)
* Bump to 0.2.82

* chore: bump version in crates/shared/src/lib.rs in sync with crates/shared/Cargo.toml

* fix: update schema file hash
2022-07-25 10:06:53 -05:00
Alex Crichton
062aa5f70a
Bump to 0.2.81 (#2935) 2022-06-14 10:06:47 -05:00
Dominic Elm
3822e67149
Expose helpers to allow synchronous initialization (#2924)
* Expose helpers to allow synchronous initialization

* fixup: fix tests
2022-06-08 14:18:05 -05:00
Liam Murphy
152816c101
Make Closure::new work on stable (#2891)
* Make `Closure::new` work on stable

I've removed the nightly requirement by replacing `Unsize<T>` with a custom `IntoWasmClosure<T>` trait, implemented for `Fn` and `FnMut`.

I don't think this is a breaking change, since I don't think any stability guarantees are provided for nightly.

* Update docs

I also removed an outdated note about closures only being able to take WASM primitive types.

* Remove nightly CI

* Don't attempt to enable the removed nightly feature in doc generation
2022-05-09 09:17:13 -05:00
Alex Crichton
4caa98165c
Bump to 0.2.80 (#2851) 2022-04-07 15:15:11 -05:00
Micah T. Keller
9b0d40c7a9
Version bump (#2772)
* Version bump

* 0.2.79 Version Bump

* 2022-01-19 Change Log
2022-01-19 14:59:31 -06:00
Alex Crichton
7f820db4b4
Bump to 0.2.78 (#2683) 2021-09-15 11:17:51 -05:00
Alex Crichton
123d5f584f
Bump to 0.2.77 (#2675) 2021-09-08 11:02:12 -05:00
Alex Crichton
a881a83c5a
Bump to 0.2.76 (#2661) 2021-08-19 10:06:51 -05:00
Thomas Etter
2ccdbd9337
Upgrade the webpack-based examples' npm dependencies (move to webpack 5) (#2651)
* Upgraded the webpack examples' npm dependencies which (among other things) upgrades them to webpack 5

For the weather_report, had to choose the syncWebAssembly experiment,
whereas the rest works fine with asyncWebAssembly

* Fix the weather report example compilation by adding it to the main workspace.
This currently fails with:
error: current package believes it's in a workspace when it's not:
current:
<project-root>/examples/weather_report/Cargo.toml
workspace: <project-root>/Cargo.toml

* Fix the build of the webxr example with webpack 5

* run cargo fmt
2021-08-10 09:43:42 -05:00
Alex Crichton
e104d1695a
Bump to 0.2.75 (#2643)
* Bump to 0.2.75

* Try to fix CI
2021-08-02 10:39:14 -05:00
sgasse
78a372183b
Add wasm in web worker example (#2556)
This commit adds a parallel execution example in which we spawn a web
worker with `web_sys`, run WASM code in the web worker and interact
between the main thread and the web worker.

It is intended to add an easy starting point for parallel execution
with WASM, complementing the more involved parallel raytrace example.

Related to GitHub issue #2549

Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
2021-05-18 09:46:30 -05:00
Alex Crichton
27c7a4d06c Bump to 0.2.74 2021-05-10 07:08:17 -07:00
Alex Crichton
3cefe2c824
Bump to 0.2.73 (#2511) 2021-03-29 09:56:32 -05:00
Alex Crichton
44d577f6b8
Bump to 0.2.72 (#2503) 2021-03-18 11:05:25 -05:00
Alex Crichton
38ba374845
Bump to 0.2.71 (#2468) 2021-02-26 10:38:04 -06:00
Alex Crichton
b6355c2702
Bump to 0.2.70 (#2435)
* Bump to 0.2.70

* Pin nightly to fix CI
2021-01-25 10:55:29 -06:00
Alex Crichton
69546a26c1
Bump to 0.2.69 (#2377) 2020-11-30 12:36:07 -06:00
dependabot-preview[bot]
9554beef5f
Update cfg-if requirement from 0.1.9 to 1.0.0 (#2326)
Updates the requirements on [cfg-if](https://github.com/alexcrichton/cfg-if) to permit the latest version.
- [Release notes](https://github.com/alexcrichton/cfg-if/releases)
- [Commits](https://github.com/alexcrichton/cfg-if/compare/0.1.9...1.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-07 05:43:16 -05:00
Alex Crichton
a04e189712
Bump to 0.2.68 (#2305) 2020-09-08 19:57:26 -05:00
Alex Crichton
7badcd3ad6
Bump to 0.2.67 (#2260) 2020-07-28 16:27:14 -05:00
Alex Crichton
b72678a6ea
Bump to 0.2.66 (#2256) 2020-07-28 13:09:36 -05:00
Alex Crichton
6742d96736
Bump to 0.2.65 (#2239) 2020-07-15 09:58:52 -05:00
Colin Moore
17950202ca
Create wasm-in-wasm-imports example (#2229) 2020-07-08 09:17:20 -05:00
Alex Crichton
31c2d6fbe5
Bump to 0.2.64 (#2219) 2020-06-29 09:48:25 -05:00
Jakob Hellermann
84c7cf01ce address pr comments 2020-06-03 22:31:05 +02:00
Alex Crichton
df809df9a5
Bump to 0.2.63 (#2163)
* Update `syn` version requirement

Require latest version to fix issues with nightly.

* Bump to 0.2.63
2020-05-27 10:07:18 -05:00
Yuji Sugiura
f94e3772bb
[Examples] Add WebRTC DataChannel example (#2131)
* Add WebRTC DataChannel example

* Add guide

* Fix format

* Use webpack to build example
2020-05-12 14:00:33 -05:00
Alex Crichton
d896446edc
Bump to 0.2.62 (#2119) 2020-05-01 10:34:36 -05:00
Alex Crichton
6d61cd8b76
Bump to 0.2.61 (#2113) 2020-04-29 11:22:35 -05:00
Alex Crichton
a19c8a3fe0
Bump to 0.2.60 (#2051)
* Bump to 0.2.60

* Try to fix CI

* Fix CI syntax
2020-03-25 16:33:36 -05:00
kevthecoder
2b29650920
Webxrdevice (#2000)
* crates/web-sys/webidls/enabled/WebXRDevice.webidl

* Add WebXR Web IDL.

* Add WebXr example.

* Workaround in WebXR for FrozenArray and XRWebGLLayer constructor.

* Remove commented code.

* Attempt to improve WebXr example.

* Add WebXr as unstable WebIDL.

* Fixes for XRWebGLLayer.

* Tidy up WebXR example code.

* Update WebXr example docs.

Co-authored-by: Kev Kirkland <kev.kirkland@elucidata.co.uk>
2020-03-17 09:14:05 -05:00
Alex Crichton
db8d3e4412
Bump to 0.2.59 (#2026)
Wow this is a big release!
2020-03-03 10:55:51 -06:00
Alex Crichton
654af576c7 Tweak some CI things for unstable APIs 2020-02-26 14:36:23 -08:00