tauri/docs/development/development.md
Kasper 4f9c9e6307
Restructure docs (#3180)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-07 09:30:23 -03:00

1.5 KiB

title
Development Cycle

import Alert from '@theme/Alert' import Command from '@theme/Command'

1. Start Your Devserver

Now that you have everything setup, you should start your application development server provided by your UI framework or bundler (assuming you're using one, of course).

Every framework has its own development tooling. It is outside of the scope of this document to treat them all or keep them up to date.

2. Start Tauri Development Window

The first time you run this command, it will take several minutes for the Rust package manager to download and build all the required packages. Since they are cached, subsequent builds will be much faster, as only your code will need rebuilding.

Once Rust has finished building, the webview will open and it should display your web app. You can make changes to your web app, and if your tooling enables it, the webview should update automatically just like a browser. When you make changes to your Rust files, they will be rebuilt automatically and your app will restart.

In your project repository, you SHOULD commit the "src-tauri/Cargo.lock" along with the "src-tauri/Cargo.toml" to git because Cargo uses the lockfile to provide deterministic builds. As a result, it is recommended that all applications check in their Cargo.lock. You SHOULD NOT commit the "src-tauri/target" folder or any of its contents.