Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, great library! I was trying out a scene with this library on native, and it worked perfectly!
However, when I tried to make a wasm build to allow some others to view the scene with their web browser without installing anything, it brought in some libraries that don't work in wasm, but are part of bevy's default features. Because crates that use the library can't disable features (it can only enable them), this change removes the bevy default features, which allows the library to work in all environments.
There is an issue where the mouse events are not being processed, but I believe that it's a bevy issue, and not an issue with this library. However, L-Shift and Space still do what they are supposed to do.
To allow you to test, I'll drop in my Cargo.toml, main.rs, and lib.rs here.
Cargo.toml
:main.rs
lib.rs
To run native version:
To run wasm version:
Then, for Windows:
...or for macOS or Linux:
cp index.html pkg/ cd pkg ./basic-http-server