Open tukanoidd opened 1 month ago
yeah i think the fix is to just make it use the iced time which will allow web and none web i believe.
though, my question is are you also using Iced_aw main branch? If not, if you use iced master you must use iced_aw main as the crate.io one will not work with the git repo iced.
My cargo deps:
[dependencies]
derive_more = "0.99.18"
iced = { git = "https://github.com/iced-rs/iced.git", version = "0.13.0-dev", default-features = false, features = [
"advanced",
"wgpu",
] }
iced_aw = { git = "https://github.com/iced-rs/iced_aw.git", version = "0.9.3" }
serde = { version = "1.0.204", features = ["derive"] }
console_error_panic_hook = "0.1"
console_log = "1.0"
Cargo.lock:
[[package]]
name = "iced_aw"
version = "0.9.3"
source = "git+https://github.com/iced-rs/iced_aw.git#598791cb4ceaee26e2dfee6a54722e1c5027e41b"
dependencies = [
"cfg-if",
"chrono",
"iced",
"itertools",
"num-format",
"num-traits",
"once_cell",
]
I also made sure to clean target/ before building again.
I'm assuming it's using main, or do I need to set the branch manually for some reason?
Hey, been trying to make something with iced master on web, but having trouble building the app with iced_aw, getting this error:
From what I can tell, spinner widget (src/widgets/spinner.rs 72:5) uses std::time::Instant, instead of using web_time::Instant, which causes this error.