feat(single-instance): Add semver compatibility check for Windows and Linux (#502)

* added semver compatibility check for Windows and Linux

* fixed formatting

* put semver feature behind a feature flag

* remove semver from root manifest

* linux compile error

* docs: Add mention for semver feature in readme

---------

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
matthme
2024-04-15 13:54:09 +00:00
committed by GitHub
parent 57e979adaf
commit 4210cf316a
7 changed files with 63 additions and 3 deletions
+4
View File
@@ -16,6 +16,7 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
semver = { version = "1", optional = true }
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.52"
@@ -31,3 +32,6 @@ features = [
[target.'cfg(target_os = "linux")'.dependencies]
zbus = "3"
[features]
semver = ["dep:semver"]