浏览代码

refactor(core): do not export `tauri_runtime` on `tauri` (#3749)

Lucas Fernandes Nogueira 3 年之前
父节点
当前提交
1099a9696e
共有 3 个文件被更改,包括 7 次插入2 次删除
  1. 5 0
      .changes/tauri-runtime-export.md
  2. 1 1
      core/tauri/src/lib.rs
  3. 1 1
      core/tauri/src/window.rs

+ 5 - 0
.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.

+ 1 - 1
core/tauri/src/lib.rs

@@ -153,7 +153,7 @@ mod manager;
 mod pattern;
 mod pattern;
 pub mod plugin;
 pub mod plugin;
 pub mod window;
 pub mod window;
-pub use tauri_runtime as runtime;
+use tauri_runtime as runtime;
 /// The allowlist scopes.
 /// The allowlist scopes.
 pub mod scope;
 pub mod scope;
 pub mod settings;
 pub mod settings;

+ 1 - 1
core/tauri/src/window.rs

@@ -178,7 +178,7 @@ impl<R: Runtime> WindowBuilder<R> {
   /// ```rust,no_run
   /// ```rust,no_run
   /// use tauri::{
   /// use tauri::{
   ///   utils::config::{Csp, CspDirectiveSources, WindowUrl},
   ///   utils::config::{Csp, CspDirectiveSources, WindowUrl},
-  ///   runtime::http::header::HeaderValue,
+  ///   http::header::HeaderValue,
   ///   window::WindowBuilder,
   ///   window::WindowBuilder,
   /// };
   /// };
   /// use std::collections::HashMap;
   /// use std::collections::HashMap;