Commit d15ada7
authored
fix(settings wasm): fix compilation errors / match store_fs fn signatures (#23779)
# Objective
- Unblock #23719 - The PR revealed that wasm builds are currently broken
for `bevy_settings` when trying to merge to main.
- On main, if you try to build an example that requires `bevy_settings`
for wasm targets, it fails with the same compilation error (i.e. `cargo
build --release --example persisting_preferences --target
wasm32-unknown-unknown --features=“bevy_settings”`)
## Solution
- Fix up `store_wasm.rs`. The function signatures should match those in
`store_fs.rs`, and remove any references that do not exist.
## Testing
- With the `Cargo.toml` change from #23719, was able to build the wasm
target described in Objective successfully. Then, prepared the wasm
target and served it locally following the examples/README.md
directions. The example works as expected for web interactions.1 parent 6356a7d commit d15ada7
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | | - | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
| |||
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
66 | | - | |
| 64 | + | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| |||
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
82 | | - | |
| 80 | + | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
0 commit comments