Skip to content

Commit 5cc65de

Browse files
committed
fix: now builds for both desktop and web
1 parent f871c5a commit 5cc65de

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

ui/src/components/qr_scanner.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
#[cfg(target_arch = "wasm32")]
77
pub use self::wasm32::*;
88

9-
#[cfg(not(target_arch = "wasm32"))]
10-
pub use self::server::*;
11-
129
#[cfg(feature = "dioxus-desktop")]
1310
pub use self::desktop::*;
1411

1512
#[cfg(any(target_os = "android", target_os = "ios"))]
1613
pub use self::mobile::*;
1714

15+
#[cfg(all(
16+
not(target_arch = "wasm32"),
17+
not(feature = "dioxus-desktop"),
18+
not(any(target_os = "android", target_os = "ios"))
19+
))]
20+
pub use self::server::*;
21+
1822
/// Contains the QR scanner implementation for the WebAssembly target.
1923
#[cfg(target_arch = "wasm32")]
2024
mod wasm32 {

0 commit comments

Comments
 (0)