Skip to content

Commit 634ec6f

Browse files
xnuwuFabianLars
andauthored
docs: Explain app_lib name origin (#3521)
Co-authored-by: Fabian-Lars <[email protected]>
1 parent ff8a820 commit 634ec6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/start/project-structure.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ the Rust project is a normal [Cargo project](https://doc.rust-lang.org/cargo/gui
4040
- `build.rs` contains `tauri_build::build()` which is used for tauri's build system
4141
- `src/lib.rs` contains the Rust code and the mobile entry point (the function marked with `#[cfg_attr(mobile, tauri::mobile_entry_point)]`),
4242
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.
4545

4646
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,
4747
and then compile the Rust project that will bundle those static files in,

0 commit comments

Comments
 (0)