From 74a2a6036a5e57462f161d728cbd8a6f121028ca Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 23 Jan 2024 13:19:51 -0300 Subject: [PATCH] chore: add change files for #8428 (#8661) --- .changes/acl.md | 11 +++++++++++ .changes/config.json | 7 +++++++ .changes/refactor-codegen-build.md | 5 +++++ core/tauri-plugin/Cargo.toml | 3 +-- core/tauri-plugin/src/build/mod.rs | 2 +- examples/api/src-tauri/Cargo.lock | 1 - 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .changes/acl.md create mode 100644 .changes/refactor-codegen-build.md diff --git a/.changes/acl.md b/.changes/acl.md new file mode 100644 index 00000000000..82a1153ef27 --- /dev/null +++ b/.changes/acl.md @@ -0,0 +1,11 @@ +--- +"tauri": patch:breaking +"tauri-plugin": major:feat +"tauri-build": patch:feat +"tauri-utils": patch:feat +"tauri-codegen": patch:feat +"tauri-macros": patch:feat +"@tauri-apps/api": patch:feat +--- + +Implement access control list for IPC usage. diff --git a/.changes/config.json b/.changes/config.json index 707f7c8d26f..fb7ca7e3ca3 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -213,6 +213,13 @@ "manager": "rust", "dependencies": ["tauri-codegen", "tauri-utils"] }, + "tauri-plugin": { + "path": "./core/tauri-plugin", + "manager": "rust", + "dependencies": [ + "tauri" + ] + }, "tauri-build": { "path": "./core/tauri-build", "manager": "rust", diff --git a/.changes/refactor-codegen-build.md b/.changes/refactor-codegen-build.md new file mode 100644 index 00000000000..7867298b8c4 --- /dev/null +++ b/.changes/refactor-codegen-build.md @@ -0,0 +1,5 @@ +--- +"tauri-build": patch:breaking +--- + +`CodegenContext::build` and `CodegenContext::try_build` have been removed, use `tauri_build::try_build(tauri_build::Attributes::new().codegen(codegen))` instead. diff --git a/core/tauri-plugin/Cargo.toml b/core/tauri-plugin/Cargo.toml index fe9c57d6028..bba71817746 100644 --- a/core/tauri-plugin/Cargo.toml +++ b/core/tauri-plugin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin" -version = "0.1.0" +version = "1.0.0" authors = { workspace = true } homepage = { workspace = true } repository = { workspace = true } @@ -22,7 +22,6 @@ runtime = [] [dependencies] serde = { version = "1", optional = true } cargo_metadata = { version = "0.18", optional = true } -tauri-utils = { version = "2.0.0-alpha.12", default-features = false, path = "../tauri-utils" } tauri = { version = "2.0.0-alpha.20", default-features = false, path = "../tauri" } serde_json = { version = "1", optional = true } glob = { version = "0.3", optional = true } diff --git a/core/tauri-plugin/src/build/mod.rs b/core/tauri-plugin/src/build/mod.rs index 7d593671ff4..2c64265f453 100644 --- a/core/tauri-plugin/src/build/mod.rs +++ b/core/tauri-plugin/src/build/mod.rs @@ -5,7 +5,7 @@ use std::path::Path; use cargo_metadata::{Metadata, MetadataCommand}; -use tauri_utils::acl::{self, Error}; +use tauri::utils::acl::{self, Error}; pub struct Builder<'a> { commands: &'a [&'static str], diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 8bd15757cd0..547bae10ffa 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -3768,7 +3768,6 @@ dependencies = [ "serde", "serde_json", "tauri", - "tauri-utils", "toml 0.8.2", ]