Skip to content

Commit 1099a96

Browse files
authored
refactor(core): do not export tauri_runtime on tauri (#3749)
1 parent 7b24448 commit 1099a96

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changes/tauri-runtime-export.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
**Breaking change:** The `tauri_runtime` crate is no longer exported since its API is not stable.

core/tauri/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mod manager;
153153
mod pattern;
154154
pub mod plugin;
155155
pub mod window;
156-
pub use tauri_runtime as runtime;
156+
use tauri_runtime as runtime;
157157
/// The allowlist scopes.
158158
pub mod scope;
159159
pub mod settings;

core/tauri/src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl<R: Runtime> WindowBuilder<R> {
178178
/// ```rust,no_run
179179
/// use tauri::{
180180
/// utils::config::{Csp, CspDirectiveSources, WindowUrl},
181-
/// runtime::http::header::HeaderValue,
181+
/// http::header::HeaderValue,
182182
/// window::WindowBuilder,
183183
/// };
184184
/// use std::collections::HashMap;

0 commit comments

Comments
 (0)