From 1099a9696e6639b46d736f8f3b446d2dfc4ef2f0 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 22 Mar 2022 11:04:16 -0700 Subject: [PATCH] refactor(core): do not export `tauri_runtime` on `tauri` (#3749) --- .changes/tauri-runtime-export.md | 5 +++++ core/tauri/src/lib.rs | 2 +- core/tauri/src/window.rs | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/tauri-runtime-export.md diff --git a/.changes/tauri-runtime-export.md b/.changes/tauri-runtime-export.md new file mode 100644 index 000000000..8de84ca05 --- /dev/null +++ b/.changes/tauri-runtime-export.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +**Breaking change:** The `tauri_runtime` crate is no longer exported since its API is not stable. diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index 78ea60387..e27c3ca5f 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -153,7 +153,7 @@ mod manager; mod pattern; pub mod plugin; pub mod window; -pub use tauri_runtime as runtime; +use tauri_runtime as runtime; /// The allowlist scopes. pub mod scope; pub mod settings; diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index a3ab4ebb9..016b69fdf 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -178,7 +178,7 @@ impl WindowBuilder { /// ```rust,no_run /// use tauri::{ /// utils::config::{Csp, CspDirectiveSources, WindowUrl}, - /// runtime::http::header::HeaderValue, + /// http::header::HeaderValue, /// window::WindowBuilder, /// }; /// use std::collections::HashMap;