Add feature flag for clipboard access
... | @@ -11,8 +11,10 @@ keywords = ["bevy"] | ... | @@ -11,8 +11,10 @@ keywords = ["bevy"] |
exclude = ["assets/*"] | exclude = ["assets/*"] | ||
[features] | [features] | ||
default_features = ["clipboard"] | |||
## For internal use only | ## For internal use only | ||
internal-debugging = ["bevy/track_change_detection"] | internal-debugging = ["bevy/track_change_detection"] | ||
clipboard = ["dep:arboard"] | |||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
... | @@ -39,7 +41,7 @@ sys-locale = "0.3.0" | ... | @@ -39,7 +41,7 @@ sys-locale = "0.3.0" |
document-features = "0.2.8" | document-features = "0.2.8" | ||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | [target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
arboard = "3.2.0" | arboard = { version = "3.2.0", optional = true } | ||
[target.'cfg(target_arch = "wasm32")'.dependencies] | [target.'cfg(target_arch = "wasm32")'.dependencies] | ||
js-sys = "0.3.70" | js-sys = "0.3.70" | ||
... | ... |
Please register or sign in to comment