| I upgraded the app I am currently working on from tauri 1.7 to 2.0 by following the guide from here: https://v2.tauri.app/start/migrate/from-tauri-1/ After running the migrate tool (via `bun run tauri migrate`) at the end of the guide, I needed to do the following things to get complete it migration. - the migrate tool ran rust format on my backend code - which I was not using at that point
- and it changed my preferred to 2 spaces to 4, so I joined the rustfmt bandwagon and created a config file with my preferred settings - run `cargo update` to get the new package versions - modify `tauri.conf.json` as the structure changed, eg. `fileDropEnabled` -> `dragDropEnabled` - change some imports, as the functions from client api were moved, this was straightforward - add the plugins `updater` and `dialog` as that functionality has moved from the core to plugins - change the code that handles the auto-updating, as the api changed as well, but for the better - the only thing that tripped me up, was that re-building the project didnt't work due to an colliding filename error, but I found a closed issue at their https://github.com/tauri-apps/tauri/issues/10192 which pointed me towards removing `rlib` from the crate-type, which solved that issue. All in all quite a smooth experience, was done in an 1-2 hours or something, not sure. |