Skip to content

Commit

Permalink
Merge pull request #94 from coderedart/build_flags_fix
Browse files Browse the repository at this point in the history
fixes #93 . use target, instead of build section for web unstable apis
  • Loading branch information
Wumpf committed Feb 10, 2023
2 parents 29d0f92 + ed0d4d1 commit 4f613f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# clipboard api is still unstable, so web-sys requires the below flag to be passed for copy (ctrl + c) to work
# https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html
# check status at https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
[build]
# we don't use `[build]` because of rust analyzer's build cache invalidation https://github.com/emilk/eframe_template/issues/93
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]

0 comments on commit 4f613f5

Please sign in to comment.