You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/start/project-structure.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,8 @@ the Rust project is a normal [Cargo project](https://doc.rust-lang.org/cargo/gui
40
40
-`build.rs` contains `tauri_build::build()` which is used for tauri's build system
41
41
-`src/lib.rs` contains the Rust code and the mobile entry point (the function marked with `#[cfg_attr(mobile, tauri::mobile_entry_point)]`),
42
42
the reason we don't write directly in `main.rs` is because we compile your app to a library in mobile builds and load them through the platform frameworks
43
-
-`src/main.rs` is the main entry point for the desktop, and we run `tauri_app_lib::run()` in `main` to use the same entry point as mobile,
44
-
so to keep it simple, don't modify this file, modify `lib.rs` instead
43
+
-`src/main.rs` is the main entry point for the desktop, and we run `app_lib::run()` in `main` to use the same entry point as mobile,
44
+
so to keep it simple, don't modify this file, modify `lib.rs` instead. Note that `app_lib` corresponds to `[lib.name]` in Cargo.toml.
45
45
46
46
Tauri works similar to a static web host, and the way it builds is that you would compile your JavaScript project to static files first,
47
47
and then compile the Rust project that will bundle those static files in,
0 commit comments