Disable debug view on Wasm (for now)

This commit is contained in:
Héctor Ramón Jiménez 2025-03-12 16:51:45 +01:00
parent 0079a8a3e9
commit 42f5a61809
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 3 additions and 2 deletions

View file

@ -16,5 +16,6 @@ enable = ["dep:iced_beacon"]
[dependencies]
iced_core.workspace = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
iced_beacon.workspace = true
iced_beacon.optional = true

View file

@ -61,7 +61,7 @@ pub fn skip_next_timing() {
internal::skip_next_timing();
}
#[cfg(feature = "enable")]
#[cfg(all(feature = "enable", not(target_arch = "wasm32")))]
mod internal {
use crate::core::theme;
use crate::core::time::Instant;
@ -204,7 +204,7 @@ mod internal {
static SKIP_NEXT_SPAN: AtomicBool = AtomicBool::new(false);
}
#[cfg(not(feature = "enable"))]
#[cfg(any(not(feature = "enable"), target_arch = "wasm32"))]
mod internal {
use crate::core::theme;
use crate::core::window;