浏览代码

Intentionally shadow module to prevent accidential use (#4327)

Moritz Hedtke 2 天之前
父节点
当前提交
ac9b1fc519
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;