feat: update to tauri beta, add permissions (#862)

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
This commit is contained in:
Tillmann
2024-02-04 03:14:41 +09:00
committed by GitHub
parent 506ce4835b
commit d198c01486
387 changed files with 21883 additions and 943 deletions
+12 -8
View File
@@ -6,11 +6,15 @@ authors = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
rust-version = { workspace = true }
links = "tauri-plugin-sql"
[package.metadata.docs.rs]
features = [ "sqlite" ]
rustc-args = [ "--cfg", "docsrs" ]
rustdoc-args = [ "--cfg", "docsrs" ]
features = ["sqlite"]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
[build-dependencies]
tauri-plugin = { workspace = true, features = ["build"] }
[dependencies]
serde = { workspace = true }
@@ -19,11 +23,11 @@ tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
futures-core = "0.3"
sqlx = { version = "0.7", features = [ "json", "time" ] }
sqlx = { version = "0.7", features = ["json", "time"] }
time = "0.3"
tokio = { version = "1", features = [ "sync" ] }
tokio = { version = "1", features = ["sync"] }
[features]
sqlite = [ "sqlx/sqlite", "sqlx/runtime-tokio" ]
mysql = [ "sqlx/mysql", "sqlx/runtime-tokio-rustls" ]
postgres = [ "sqlx/postgres", "sqlx/runtime-tokio-rustls" ]
sqlite = ["sqlx/sqlite", "sqlx/runtime-tokio"]
mysql = ["sqlx/mysql", "sqlx/runtime-tokio-rustls"]
postgres = ["sqlx/postgres", "sqlx/runtime-tokio-rustls"]
+9
View File
@@ -0,0 +1,9 @@
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
const COMMANDS: &[&str] = &["load", "execute", "select", "close"];
fn main() {
tauri_plugin::Builder::new(COMMANDS).build();
}
+1 -1
View File
@@ -24,6 +24,6 @@
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "2.0.0-alpha.13"
"@tauri-apps/api": "2.0.0-beta.0"
}
}
+1
View File
@@ -0,0 +1 @@
schemas/
+1
View File
@@ -0,0 +1 @@
schemas/
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-close"
description = "Enables the close command without any pre-configured scope."
commands.allow = ["close"]
[[permission]]
identifier = "deny-close"
description = "Denies the close command without any pre-configured scope."
commands.deny = ["close"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-execute"
description = "Enables the execute command without any pre-configured scope."
commands.allow = ["execute"]
[[permission]]
identifier = "deny-execute"
description = "Denies the execute command without any pre-configured scope."
commands.deny = ["execute"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-load"
description = "Enables the load command without any pre-configured scope."
commands.allow = ["load"]
[[permission]]
identifier = "deny-load"
description = "Denies the load command without any pre-configured scope."
commands.deny = ["load"]
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-select"
description = "Enables the select command without any pre-configured scope."
commands.allow = ["select"]
[[permission]]
identifier = "deny-select"
description = "Denies the select command without any pre-configured scope."
commands.deny = ["select"]
@@ -0,0 +1,34 @@
# Permissions
## allow-close
Enables the close command without any pre-configured scope.
## deny-close
Denies the close command without any pre-configured scope.
## allow-execute
Enables the execute command without any pre-configured scope.
## deny-execute
Denies the execute command without any pre-configured scope.
## allow-load
Enables the load command without any pre-configured scope.
## deny-load
Denies the load command without any pre-configured scope.
## allow-select
Enables the select command without any pre-configured scope.
## deny-select
Denies the select command without any pre-configured scope.