file picker - file input

This commit is contained in:
Martin Kavík 2024-06-04 20:46:10 +02:00
parent ce36cd914f
commit e3e3820cc5
7 changed files with 130 additions and 35 deletions

View file

@ -1,5 +1,6 @@
[build]
# `target` to to prevent rebuilding from scratch on each change
[target.wasm32-unknown-unknown]
# https://docs.rs/web-sys/latest/web_sys/struct.Window.html#method.show_open_file_picker
# https://github.com/rustwasm/wasm-bindgen/issues/2339#issuecomment-1000651386
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]