From aabc4d3a24e8e240df9b1ee47d5de8d7fd8d5e1b Mon Sep 17 00:00:00 2001 From: Tillmann <112912081+tillmann-crabnebula@users.noreply.github.com> Date: Thu, 26 Sep 2024 21:21:25 +0900 Subject: [PATCH] Add Metadata for Plugin Compatibility (#1836) Co-authored-by: Tillmann <112912081+tillmann-crabnebula@users.noreply.github.com> Co-authored-by: Tillmann <28728469+tweidinger@users.noreply.github.com> --- plugins/autostart/Cargo.toml | 7 +++++++ plugins/barcode-scanner/Cargo.toml | 8 ++++++++ plugins/biometric/Cargo.toml | 8 ++++++++ plugins/cli/Cargo.toml | 8 ++++++++ plugins/clipboard-manager/Cargo.toml | 8 ++++++++ plugins/deep-link/Cargo.toml | 7 +++++++ plugins/dialog/Cargo.toml | 7 +++++++ plugins/fs/Cargo.toml | 7 +++++++ plugins/geolocation/Cargo.toml | 7 +++++++ plugins/global-shortcut/Cargo.toml | 7 +++++++ plugins/haptics/Cargo.toml | 7 +++++++ plugins/http/Cargo.toml | 7 +++++++ plugins/localhost/Cargo.toml | 7 +++++++ plugins/log/Cargo.toml | 7 +++++++ plugins/nfc/Cargo.toml | 7 +++++++ plugins/notification/Cargo.toml | 7 +++++++ plugins/os/Cargo.toml | 7 +++++++ plugins/persisted-scope/Cargo.toml | 7 +++++++ plugins/positioner/Cargo.toml | 7 +++++++ plugins/process/Cargo.toml | 7 +++++++ plugins/shell/Cargo.toml | 7 +++++++ plugins/single-instance/Cargo.toml | 7 +++++++ plugins/sql/Cargo.toml | 7 +++++++ plugins/store/Cargo.toml | 7 +++++++ plugins/stronghold/Cargo.toml | 7 +++++++ plugins/updater/Cargo.toml | 7 +++++++ plugins/upload/Cargo.toml | 7 +++++++ plugins/websocket/Cargo.toml | 7 +++++++ plugins/window-state/Cargo.toml | 7 +++++++ shared/template/Cargo.toml | 11 +++++++++++ 30 files changed, 218 insertions(+) diff --git a/plugins/autostart/Cargo.toml b/plugins/autostart/Cargo.toml index 5dd503e48..7df265ffe 100644 --- a/plugins/autostart/Cargo.toml +++ b/plugins/autostart/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-autostart" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/barcode-scanner/Cargo.toml b/plugins/barcode-scanner/Cargo.toml index 5992f8525..85d5181ca 100644 --- a/plugins/barcode-scanner/Cargo.toml +++ b/plugins/barcode-scanner/Cargo.toml @@ -14,6 +14,14 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "none", notes = "" } +linux = { level = "none", notes = "" } +macos = { level = "none", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/biometric/Cargo.toml b/plugins/biometric/Cargo.toml index 3135d86b7..b242dab1a 100644 --- a/plugins/biometric/Cargo.toml +++ b/plugins/biometric/Cargo.toml @@ -13,6 +13,14 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "none", notes = "" } +linux = { level = "none", notes = "" } +macos = { level = "none", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/cli/Cargo.toml b/plugins/cli/Cargo.toml index eff2b6f26..ccecff053 100644 --- a/plugins/cli/Cargo.toml +++ b/plugins/cli/Cargo.toml @@ -13,6 +13,14 @@ links = "tauri-plugin-cli" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/clipboard-manager/Cargo.toml b/plugins/clipboard-manager/Cargo.toml index 84ee04640..e25aabd54 100644 --- a/plugins/clipboard-manager/Cargo.toml +++ b/plugins/clipboard-manager/Cargo.toml @@ -14,6 +14,14 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-unknown-linux-gnu", "x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "partial", notes = "Only plain-text content support" } +ios = { level = "partial", notes = "Only plain-text content support" } + + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/deep-link/Cargo.toml b/plugins/deep-link/Cargo.toml index 4f5f57766..9a0854932 100644 --- a/plugins/deep-link/Cargo.toml +++ b/plugins/deep-link/Cargo.toml @@ -14,6 +14,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "partial", notes = "Runtime deep link registration is not supported" } +android = { level = "partial", notes = "Runtime deep link registration is not supported" } +ios = { level = "partial", notes = "Runtime deep link registration is not supported" } + [build-dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index b08c5cda7..75327f740 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -14,6 +14,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-unknown-linux-gnu", "x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "partial", notes = "Does not support folder picker" } +ios = { level = "partial", notes = "Does not support folder picker" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/fs/Cargo.toml b/plugins/fs/Cargo.toml index 6576b75ae..2b4ffcea9 100644 --- a/plugins/fs/Cargo.toml +++ b/plugins/fs/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-fs" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "No write access to `$RESOURCES` folder" } +macos = { level = "full", notes = "No write access to `$RESOURCES` folder" } +android = { level = "partial", notes = "Access is restricted to Application folder by default" } +ios = { level = "partial", notes = "Access is restricted to Application folder by default" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } schemars = { workspace = true } diff --git a/plugins/geolocation/Cargo.toml b/plugins/geolocation/Cargo.toml index f41fb8044..876c378cc 100644 --- a/plugins/geolocation/Cargo.toml +++ b/plugins/geolocation/Cargo.toml @@ -13,6 +13,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "none", notes = "" } +linux = { level = "none", notes = "" } +macos = { level = "none", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/global-shortcut/Cargo.toml b/plugins/global-shortcut/Cargo.toml index 9da8e7ee8..5b560b75a 100644 --- a/plugins/global-shortcut/Cargo.toml +++ b/plugins/global-shortcut/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-global-shortcut" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/haptics/Cargo.toml b/plugins/haptics/Cargo.toml index 97ab3e248..8c8ff1326 100644 --- a/plugins/haptics/Cargo.toml +++ b/plugins/haptics/Cargo.toml @@ -13,6 +13,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "none", notes = "" } +linux = { level = "none", notes = "" } +macos = { level = "none", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/http/Cargo.toml b/plugins/http/Cargo.toml index 572421c20..057780c50 100644 --- a/plugins/http/Cargo.toml +++ b/plugins/http/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-http" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } schemars = { workspace = true } diff --git a/plugins/localhost/Cargo.toml b/plugins/localhost/Cargo.toml index 075cd5c36..9f0e18531 100644 --- a/plugins/localhost/Cargo.toml +++ b/plugins/localhost/Cargo.toml @@ -12,6 +12,13 @@ repository = { workspace = true } rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/log/Cargo.toml b/plugins/log/Cargo.toml index dbb146d89..57f96b4a7 100644 --- a/plugins/log/Cargo.toml +++ b/plugins/log/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-log" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "unknown", notes = "" } +ios = { level = "unknown", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/nfc/Cargo.toml b/plugins/nfc/Cargo.toml index 852862733..a40c91172 100644 --- a/plugins/nfc/Cargo.toml +++ b/plugins/nfc/Cargo.toml @@ -13,6 +13,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "none", notes = "" } +linux = { level = "none", notes = "" } +macos = { level = "none", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/notification/Cargo.toml b/plugins/notification/Cargo.toml index a817cbadb..8d0f9270a 100644 --- a/plugins/notification/Cargo.toml +++ b/plugins/notification/Cargo.toml @@ -14,6 +14,13 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] targets = ["x86_64-unknown-linux-gnu", "x86_64-linux-android"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/os/Cargo.toml b/plugins/os/Cargo.toml index 017ad0dee..1e36e2209 100644 --- a/plugins/os/Cargo.toml +++ b/plugins/os/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-os" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/persisted-scope/Cargo.toml b/plugins/persisted-scope/Cargo.toml index 9fb923a28..df924ea4d 100644 --- a/plugins/persisted-scope/Cargo.toml +++ b/plugins/persisted-scope/Cargo.toml @@ -12,6 +12,13 @@ repository = { workspace = true } rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/positioner/Cargo.toml b/plugins/positioner/Cargo.toml index 4a3f5b0b5..757bfac09 100644 --- a/plugins/positioner/Cargo.toml +++ b/plugins/positioner/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-positioner" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/process/Cargo.toml b/plugins/process/Cargo.toml index d9b7ecf30..624227079 100644 --- a/plugins/process/Cargo.toml +++ b/plugins/process/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-process" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/shell/Cargo.toml b/plugins/shell/Cargo.toml index d226fa4e3..62a3fd9e6 100644 --- a/plugins/shell/Cargo.toml +++ b/plugins/shell/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-shell" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "partial", notes = "Only allows to open URLs via `open`" } +ios = { level = "partial", notes = "Only allows to open URLs via `open`" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } schemars = { workspace = true } diff --git a/plugins/single-instance/Cargo.toml b/plugins/single-instance/Cargo.toml index cd8038160..1d6f0b954 100644 --- a/plugins/single-instance/Cargo.toml +++ b/plugins/single-instance/Cargo.toml @@ -13,6 +13,13 @@ exclude = ["/examples"] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index dba0c4332..bfcfc99ef 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -14,6 +14,13 @@ features = ["sqlite"] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/store/Cargo.toml b/plugins/store/Cargo.toml index 9ef49952c..0300b35fe 100644 --- a/plugins/store/Cargo.toml +++ b/plugins/store/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-store" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "full", notes = "" } +ios = { level = "full", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index f13e51769..374134dc2 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-stronghold" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/updater/Cargo.toml b/plugins/updater/Cargo.toml index a98304462..f2de9ecfd 100644 --- a/plugins/updater/Cargo.toml +++ b/plugins/updater/Cargo.toml @@ -15,6 +15,13 @@ rustdoc-args = ["--cfg", "docsrs"] no-default-features = true features = ["zip"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/upload/Cargo.toml b/plugins/upload/Cargo.toml index 2e90bfb42..d01f6bbee 100644 --- a/plugins/upload/Cargo.toml +++ b/plugins/upload/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-upload" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/websocket/Cargo.toml b/plugins/websocket/Cargo.toml index 19efdfb01..67c4a9ae7 100644 --- a/plugins/websocket/Cargo.toml +++ b/plugins/websocket/Cargo.toml @@ -14,6 +14,13 @@ exclude = ["/examples"] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/plugins/window-state/Cargo.toml b/plugins/window-state/Cargo.toml index 974ef8179..60d7cbd53 100644 --- a/plugins/window-state/Cargo.toml +++ b/plugins/window-state/Cargo.toml @@ -13,6 +13,13 @@ links = "tauri-plugin-window-state" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +[package.metadata.platforms.support] +windows = { level = "full", notes = "" } +linux = { level = "full", notes = "" } +macos = { level = "full", notes = "" } +android = { level = "none", notes = "" } +ios = { level = "none", notes = "" } + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] } diff --git a/shared/template/Cargo.toml b/shared/template/Cargo.toml index 97bc04818..a672132db 100644 --- a/shared/template/Cargo.toml +++ b/shared/template/Cargo.toml @@ -11,6 +11,17 @@ links = "tauri-plugin-PLUGIN_NAME" rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] +# Platforms supported by the plugin +# Support levels are "full", "partial", "none", "unknown" +# Details of the support level are left to plugin maintainer +[package.metadata.platforms] +windows = { level = "unknown", notes = "" } +linux = { level = "unknown", notes = "" } +macos = { level = "unknown", notes = "" } +android = { level = "unknown", notes = "" } +ios = { level = "unknown", notes = "" } + + [build-dependencies] tauri-plugin = { workspace = true, features = ["build"] }