Skip to content

Commit

Permalink
Update .cargo/config.toml
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Batyrenko <[email protected]>
  • Loading branch information
Vrixyz and vladbat00 authored May 31, 2023
1 parent 9d743fd commit 070f108
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
[alias]
run-wasm = ["run", "--release", "--package", "run-wasm", "--"]

# Credits to https://github.com/emilk/egui

# 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]
#target = "wasm32-unknown-unknown"

# Using unstable APIs is required for writing to clipboard
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]

0 comments on commit 070f108

Please sign in to comment.