Breaking changes
- The "dev-server" feature has been removed
window.onTauriInit
has been removed. If you need to synchronize behavior between your app's events and the Rustsetup
hook, you need to do it yourself like this:
.setup(|webview, _| {
let handle = webview.handle();
// some event listener that the frontend calls on initialization, so needs synchronization
tauri::event::listen(String::from("hello"), move |_| {
tauri::event::emit(&handle, String::from("reply"), Some("{ msg: 'TEST' }".to_string()));
});
// notify the frontend that the event listener is ready
webview.eval("window.onTauriInit && window.onTauriInit()").unwrap();
})
And assign a function to window.onTauriInit on your front end code.
Cargo Audit
Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
Loaded 83 security advisories (from /home/runner/.cargo/advisory-db)
Updating crates.io index
Updating crates.io index
error: Couldn't load Cargo.lock: I/O error: I/O operation failed: couldn't open Cargo.lock: No such file or directory (os error 2)
Cargo Publish
Updating crates.io index
Packaging tauri v0.5.1 (/home/runner/work/tauri/tauri/tauri)
Uploading tauri v0.5.1 (/home/runner/work/tauri/tauri/tauri)