Skip to content

Commit 55892c3

Browse files
authored
fix(core): updater documentation not showing on docs.rs (#4190)
1 parent eedadd3 commit 55892c3

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

.changes/fix-updater-docs.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+
Fixes updater documentation not showing on docs.rs.

core/tauri/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ features = [
2525
"custom-protocol",
2626
"api-all",
2727
"cli",
28-
"__updater-docs",
29-
"__fs-extract-api-docs",
28+
"updater",
29+
"fs-extract-api",
3030
"system-tray",
3131
"devtools",
3232
"http-multipart",
@@ -143,12 +143,10 @@ updater = [
143143
"dialog-ask",
144144
"fs-extract-api"
145145
]
146-
__updater-docs = [ "minisign-verify", "base64", "http-api", "dialog-ask" ]
147146
http-api = [ "attohttpc" ]
148147
http-multipart = [ "attohttpc/multipart-form", "reqwest/multipart" ]
149148
shell-open-api = [ "open", "regex", "tauri-macros/shell-scope" ]
150149
fs-extract-api = [ "zip" ]
151-
__fs-extract-api-docs = [ ]
152150
reqwest-client = [ "reqwest", "bytes" ]
153151
process-command-api = [ "shared_child", "os_pipe" ]
154152
global-shortcut = [

core/tauri/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ fn alias(alias: &str, has_feature: bool) {
3838
fn main() {
3939
alias("custom_protocol", has_feature("custom-protocol"));
4040
alias("dev", !has_feature("custom-protocol"));
41-
alias(
42-
"updater",
43-
has_feature("updater") || has_feature("__updater-docs"),
44-
);
41+
alias("updater", has_feature("updater"));
4542

4643
let api_all = has_feature("api-all");
4744
alias("api_all", api_all);

core/tauri/src/api/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub enum Error {
6767
#[error(transparent)]
6868
Zip(#[from] zip::result::ZipError),
6969
/// Extract error.
70-
#[cfg(any(feature = "fs-extract-api", feature = "__fs-extract-api-docs"))]
70+
#[cfg(feature = "fs-extract-api")]
7171
#[error("Failed to extract: {0}")]
7272
Extract(String),
7373
/// Notification error.

core/tauri/src/api/file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
//! Types and functions related to file operations.
66
7-
#[cfg(any(feature = "fs-extract-api", feature = "__fs-extract-api-docs"))]
7+
#[cfg(feature = "fs-extract-api")]
88
mod extract;
99
mod file_move;
1010

@@ -13,7 +13,7 @@ use std::{
1313
path::{Display, Path},
1414
};
1515

16-
#[cfg(any(feature = "fs-extract-api", feature = "__fs-extract-api-docs"))]
16+
#[cfg(feature = "fs-extract-api")]
1717
pub use extract::*;
1818
pub use file_move::*;
1919

core/tauri/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ macro_rules! shared_app_impl {
537537
/// let handle = app.handle();
538538
/// tauri::async_runtime::spawn(async move {
539539
#[cfg_attr(
540-
any(feature = "updater", feature = "__updater-docs"),
540+
feature = "updater",
541541
doc = r#" let response = handle.updater().check().await;"#
542542
)]
543543
/// });

0 commit comments

Comments
 (0)