Browse Source

Intentionally shadow module to prevent accidential use (#4327)

Moritz Hedtke 2 ngày trước cách đây
mục cha
commit
ac9b1fc519
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      packages/mobile/src/lib.rs

+ 3 - 0
packages/mobile/src/lib.rs

@@ -3,6 +3,9 @@
 #![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
 
 pub use dioxus_desktop::*;
+// intentionally shadow the launch module as it does not work on mobile.
+pub mod launch {}
+
 use dioxus_lib::prelude::*;
 use std::any::Any;