mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
Forbid use of std::time::Instant on wasm
This commit is contained in:
@@ -38,6 +38,7 @@ disallowed-methods = [
|
||||
disallowed-types = [
|
||||
{ path = "instant::SystemTime", reason = "Known bugs. Use web-time." },
|
||||
{ path = "std::thread::Builder", reason = "Cannot spawn threads on wasm" },
|
||||
{ path = "std::time::Instant", reason = "Use web-time instead." },
|
||||
# { path = "std::path::PathBuf", reason = "Can't read/write files on web" }, // TODO(emilk): consider banning Path on wasm
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user