Commit 008ca5d
authored
# Objective
Fixes #21336.
`bevy_platform` and dependents such as `bevy_ecs` may be used on web
without incurring the `RUSTFLAGS` requirement of `getrandom`.
## Solution
Remove dependency `bevy_platform` → `getrandom`.
Note: There was a suggestion of adding a dependency `bevy_math` →
`getrandom` to replace it, but `bevy_math` does not actually depend
transitively on `getrandom` at all (except in its examples), nor does
any other Bevy library. If making `getrandom` work is desired for
convenience of Bevy users, we could add `bevy_internal/web` →
`getrandom/wasm_js`, but that would not be for the use of Bevy itself at
all, and it would mean that Bevy users would hit the `RUSTFLAGS`
requirement even if they don't truly need it.
## Testing
- Ran `cargo run -p ci -- compile` and `cargo run -p ci -- test`.
- Tested depending on this version of `bevy_ecs` in my own wasm32
project.
- Have not tested any further feature combinations.
1 parent dba7c74 commit 008ca5d
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 78 | | |
83 | 79 | | |
84 | 80 | | |
| |||
0 commit comments