Skip to content

Commit 15c99d8

Browse files
committed
fix: add js feature random on WASM
1 parent 75d5d8f commit 15c99d8

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"rust-analyzer.showUnlinkedFileNotification": false,
33
"cSpell.words": [
4+
"getrandom",
45
"jsvalue"
56
],
67
// "rust-analyzer.cargo.target": "wasm32-unknown-unknown" // Uncomment to use rust-analyzer on wasm code instead

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ tokio = { version = "1", default-features = false, optional = true }
3535
wasm-bindgen-futures = "0.4.34"
3636
js-sys = { version = "0.3.69", optional = true }
3737
web-sys = { version = "0.3.69", optional = true }
38+
getrandom = { version = "0.2.15", features = ["js"] }
3839

3940
[dev-dependencies]
4041
wasm-bindgen-test = "0.3.34"

src/data_state_retry.rs

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ impl<T, E: ErrorBounds> DataStateRetry<T, E> {
191191
self.inner.is_none()
192192
}
193193

194+
#[cfg(feature = "egui")]
194195
fn ui_spinner_with_attempt_count(&self, ui: &mut egui::Ui) {
195196
ui.horizontal(|ui| {
196197
ui.spinner();

0 commit comments

Comments
 (0)