-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
mod use_clipboard; | ||
|
||
pub use use_clipboard::*; | ||
cfg_if::cfg_if! { | ||
if #[cfg(not(target_family = "wasm"))] { | ||
mod use_clipboard; | ||
pub use use_clipboard::*; | ||
} else { | ||
compile_error!("the `clipboard` feature is only available on desktop targets"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
mod use_preferred_color_scheme; | ||
|
||
pub use use_preferred_color_scheme::*; | ||
cfg_if::cfg_if! { | ||
if #[cfg(target_family = "wasm")] { | ||
mod use_preferred_color_scheme; | ||
pub use use_preferred_color_scheme::*; | ||
} else { | ||
compile_error!("the `color_scheme` feature is only available on wasm targets"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
pub mod notification; | ||
cfg_if::cfg_if! { | ||
if #[cfg(not(target_family = "wasm"))] { | ||
pub mod notification; | ||
} else { | ||
compile_error!("the `notification` feature is only available on desktop targets"); | ||
} | ||
} |