mirror of
https://github.com/storytold/egui.git
synced 2026-11-21 18:12:42 +01:00
Forbid use of std::time::Instant on wasm
This commit is contained in:
1 parent
a03604fce0
commit
8a10f81ca0
1 file changed
+1
@@ -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