Explorar el Código

Intentionally shadow module to prevent accidential use (#4327)

Moritz Hedtke hace 2 días
padre
commit
ac9b1fc519
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;