@@ -75,7 +75,13 @@ pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
78+#[cfg(target_os = "wasm32")]
79+pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
81+ Box::new(provider::NopProvider::new())
78−#[cfg(not(any(windows, target_os = "macos")))]
84+#[cfg(not(any(windows, target_os = "wasm32", target_os = "macos")))]
79pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
85pub fn get_clipboard_provider() -> Box<dyn ClipboardProvider> {
80 use provider::command::{env_var_is_set, exists, is_exit_success};
86 use provider::command::{env_var_is_set, exists, is_exit_success};
81 // TODO: support for user-defined provider, probably when we have plugin support by setting a
87 // TODO: support for user-defined provider, probably when we have plugin support by setting a
@@ -201,6 +207,7 @@ mod provider {
210+ #[cfg(not(target_arch = "wasm32"))]
204 pub mod command {
211 pub mod command {
205 use super::*;
212 use super::*;
206 use anyhow::{bail, Context as _, Result};
213 use anyhow::{bail, Context as _, Result};