Disable debug view on Wasm (for now)
This commit is contained in:
parent
0079a8a3e9
commit
42f5a61809
2 changed files with 3 additions and 2 deletions
|
|
@ -16,5 +16,6 @@ enable = ["dep:iced_beacon"]
|
||||||
[dependencies]
|
[dependencies]
|
||||||
iced_core.workspace = true
|
iced_core.workspace = true
|
||||||
|
|
||||||
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||||
iced_beacon.workspace = true
|
iced_beacon.workspace = true
|
||||||
iced_beacon.optional = true
|
iced_beacon.optional = true
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ pub fn skip_next_timing() {
|
||||||
internal::skip_next_timing();
|
internal::skip_next_timing();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "enable")]
|
#[cfg(all(feature = "enable", not(target_arch = "wasm32")))]
|
||||||
mod internal {
|
mod internal {
|
||||||
use crate::core::theme;
|
use crate::core::theme;
|
||||||
use crate::core::time::Instant;
|
use crate::core::time::Instant;
|
||||||
|
|
@ -204,7 +204,7 @@ mod internal {
|
||||||
static SKIP_NEXT_SPAN: AtomicBool = AtomicBool::new(false);
|
static SKIP_NEXT_SPAN: AtomicBool = AtomicBool::new(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(feature = "enable"))]
|
#[cfg(any(not(feature = "enable"), target_arch = "wasm32"))]
|
||||||
mod internal {
|
mod internal {
|
||||||
use crate::core::theme;
|
use crate::core::theme;
|
||||||
use crate::core::window;
|
use crate::core::window;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue