diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 3239b995c..fe9953d36 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -44,7 +44,7 @@ tauri-utils = { version = "1.0.0-beta.0", path = "../tauri-utils" } tauri-runtime-wry = { version = "0.1.1", path = "../tauri-runtime-wry", optional = true } rand = "0.8" tempfile = "3" -semver = "0.11" +semver = "1.0" serde_repr = "0.1" zip = "0.5" ignore = "0.4" diff --git a/core/tauri/src/api/error.rs b/core/tauri/src/api/error.rs index 3bbdfcddc..89e280276 100644 --- a/core/tauri/src/api/error.rs +++ b/core/tauri/src/api/error.rs @@ -46,7 +46,7 @@ pub enum Error { InvalidHttpForm, /// Semver error. #[error("{0}")] - Semver(#[from] semver::SemVerError), + Semver(#[from] semver::Error), /// JSON error. #[error("{0}")] Json(#[from] serde_json::Error), diff --git a/core/tauri/src/updater/error.rs b/core/tauri/src/updater/error.rs index 2438d0f03..a259cb927 100644 --- a/core/tauri/src/updater/error.rs +++ b/core/tauri/src/updater/error.rs @@ -13,7 +13,7 @@ pub enum Error { Io(#[from] std::io::Error), /// Semver Errors. #[error("Unable to compare version: {0}")] - Semver(#[from] semver::SemVerError), + Semver(#[from] semver::Error), /// JSON (Serde) Errors. #[error("JSON error: {0}")] SerdeJson(#[from] serde_json::Error),