#thead "main" panicked after migrating from 1.5.4

5 messages · Page 1 of 1 (latest)

teal hearth
#
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
thread 'main' panicked at src/cargo\core\compiler\fingerprint\mod.rs:1103:13:
assertion failed: mtimes.insert(output.clone(), mtime).is_none()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I've tried following the upgrade guide from v1 to v2 and also copied default configurations from a new tauri app, deleting the src-tauri/target dir and running the app on dev mode again works, with some errores like window.TAURI_IPC is not a function(installing @tauri-apps/api@next solved this), but i dont care right now about this because restarting the app throws the same rust error.

teal hearth
#

thead "main" panicked after migrating from 1.5.4

high pike
#

What's your rust compiler version? Did you try updating it? (rustup update)

teal hearth
#

My Cargo.toml

[package]
name = "tablerx"
version = "0.0.0"
description = "A Tauri App"
authors = ["Daniel Patricio Becerra"]
# license = ""
# repository = ""
# default-run = "tauri init"
edition = "2021"
# rust-version = "1.79.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "tauri_app_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }

[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "2.0.0-beta", features = [] }
tauri-plugin-sql = {version = "2.0.0-beta.7", features = ["sqlite"] }
tauri-plugin-shell = "2.0.0-beta.7"
tauri-plugin-os = "2.0.0-beta.6"
tauri-plugin-process = "2.0.0-beta.6"
tauri-plugin-fs = "2.0.0-beta.9"
tauri-plugin-dialog = "2.0.0-beta.9"
tauri-plugin-clipboard-manager = "2.1.0-beta.4"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled.
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
custom-protocol = [ "tauri/custom-protocol" ]

[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-updater = "2.0.0-beta.8"