diff --git a/.changes/kuchikiki.md b/.changes/kuchikiki.md new file mode 100644 index 000000000..b57057901 --- /dev/null +++ b/.changes/kuchikiki.md @@ -0,0 +1,5 @@ +--- +"tauri-utils": patch:sec +--- + +Changed HTML implementation from unmaintained `kuchiki` to `kuchikiki`. diff --git a/core/tauri-utils/Cargo.toml b/core/tauri-utils/Cargo.toml index db629efc5..dbbeb0799 100644 --- a/core/tauri-utils/Cargo.toml +++ b/core/tauri-utils/Cargo.toml @@ -19,8 +19,8 @@ thiserror = "1" phf = { version = "0.10", features = [ "macros" ] } brotli = { version = "3", optional = true, default-features = false, features = [ "std" ] } url = { version = "2", features = [ "serde" ] } -kuchiki = "0.8" -html5ever = "0.25" +html5ever = "0.26" +kuchiki = { package = "kuchikiki", version = "0.8" } proc-macro2 = { version = "1", optional = true } quote = { version = "1", optional = true } schemars = { version = "0.8", features = [ "url" ], optional = true } diff --git a/core/tauri-utils/src/html.rs b/core/tauri-utils/src/html.rs index 13600817d..5b8af5772 100644 --- a/core/tauri-utils/src/html.rs +++ b/core/tauri-utils/src/html.rs @@ -302,7 +302,7 @@ mod tests { assert_eq!( document.to_string(), format!( - r#"
"#, + r#""#, super::CSP_TOKEN ) ); diff --git a/tooling/cli/Cargo.toml b/tooling/cli/Cargo.toml index d8d40fc7b..928215be0 100644 --- a/tooling/cli/Cargo.toml +++ b/tooling/cli/Cargo.toml @@ -86,8 +86,8 @@ env_logger = "0.9.1" icns = { package = "tauri-icns", version = "0.1" } image = { version = "0.24", default-features = false, features = [ "ico" ] } axum = { version = "0.5.16", features = [ "ws" ] } -html5ever = "0.25" -kuchiki = "0.8" +html5ever = "0.26" +kuchiki = { package = "kuchikiki", version = "0.8" } tokio = { version = "1", features = [ "macros", "sync" ] } common-path = "1" serde-value = "0.7.0"