diff --git a/.changes/fix-docs-build.md b/.changes/fix-docs-build.md new file mode 100644 index 000000000..1e6c0b1a7 --- /dev/null +++ b/.changes/fix-docs-build.md @@ -0,0 +1,31 @@ +--- +"app": patch +"authenticator": patch +"autostart": patch +"cli": patch +"clipboard-manager": patch +"dialog": patch +"fs": patch +"global-shortcut": patch +"http": patch +"localhost": patch +"log-plugin": patch +"notification": patch +"os": patch +"persisted-scope": patch +"positioner": patch +"process": patch +"shell": patch +"single-instance": patch +"sql": patch +"store": patch +"stronghold": patch +"updater": patch +"upload": patch +"websocket": patch +"window": patch +"window-state": patch +--- + +Fixes docs.rs build by enabling the `tauri/dox` feature flag. + diff --git a/plugins/app/Cargo.toml b/plugins/app/Cargo.toml index 6ae1ca3f7..267a39dcb 100644 --- a/plugins/app/Cargo.toml +++ b/plugins/app/Cargo.toml @@ -6,5 +6,8 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] tauri = { workspace = true } diff --git a/plugins/authenticator/Cargo.toml b/plugins/authenticator/Cargo.toml index 4ce3b98ee..11269de21 100644 --- a/plugins/authenticator/Cargo.toml +++ b/plugins/authenticator/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/autostart/Cargo.toml b/plugins/autostart/Cargo.toml index 15e757bdd..1b7476be5 100644 --- a/plugins/autostart/Cargo.toml +++ b/plugins/autostart/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/cli/Cargo.toml b/plugins/cli/Cargo.toml index b3a2ca7d0..3eb1075bd 100644 --- a/plugins/cli/Cargo.toml +++ b/plugins/cli/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/clipboard-manager/Cargo.toml b/plugins/clipboard-manager/Cargo.toml index c0881b496..9b36b2e8a 100644 --- a/plugins/clipboard-manager/Cargo.toml +++ b/plugins/clipboard-manager/Cargo.toml @@ -7,6 +7,9 @@ authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-clipboard-manager" +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [build-dependencies] tauri-build = { workspace = true } diff --git a/plugins/dialog/Cargo.toml b/plugins/dialog/Cargo.toml index 7ca498701..df4398a9b 100644 --- a/plugins/dialog/Cargo.toml +++ b/plugins/dialog/Cargo.toml @@ -7,6 +7,9 @@ authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-dialog" +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/fs/Cargo.toml b/plugins/fs/Cargo.toml index e355ff6c7..2a8b59108 100644 --- a/plugins/fs/Cargo.toml +++ b/plugins/fs/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } tauri = { workspace = true } diff --git a/plugins/global-shortcut/Cargo.toml b/plugins/global-shortcut/Cargo.toml index b281d2b0e..cb37c08bb 100644 --- a/plugins/global-shortcut/Cargo.toml +++ b/plugins/global-shortcut/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/http/Cargo.toml b/plugins/http/Cargo.toml index 95f74bfe2..8dc315f7f 100644 --- a/plugins/http/Cargo.toml +++ b/plugins/http/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/localhost/Cargo.toml b/plugins/localhost/Cargo.toml index a5586cbe6..bc91624ad 100644 --- a/plugins/localhost/Cargo.toml +++ b/plugins/localhost/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/log/Cargo.toml b/plugins/log/Cargo.toml index 06a19f4a9..b6fa45471 100644 --- a/plugins/log/Cargo.toml +++ b/plugins/log/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [build-dependencies] tauri-build = { workspace = true } diff --git a/plugins/notification/Cargo.toml b/plugins/notification/Cargo.toml index fddbde5c8..ad284e9f3 100644 --- a/plugins/notification/Cargo.toml +++ b/plugins/notification/Cargo.toml @@ -7,6 +7,9 @@ authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-notification" +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [build-dependencies] tauri-build = { workspace = true } diff --git a/plugins/os/Cargo.toml b/plugins/os/Cargo.toml index e22804105..d3e6abe5c 100644 --- a/plugins/os/Cargo.toml +++ b/plugins/os/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/persisted-scope/Cargo.toml b/plugins/persisted-scope/Cargo.toml index ea38618d5..8967960a7 100644 --- a/plugins/persisted-scope/Cargo.toml +++ b/plugins/persisted-scope/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/positioner/Cargo.toml b/plugins/positioner/Cargo.toml index 25927a26f..25189be5f 100644 --- a/plugins/positioner/Cargo.toml +++ b/plugins/positioner/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/process/Cargo.toml b/plugins/process/Cargo.toml index f018daa19..c5e8036d2 100644 --- a/plugins/process/Cargo.toml +++ b/plugins/process/Cargo.toml @@ -6,5 +6,8 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] tauri = { workspace = true } diff --git a/plugins/shell/Cargo.toml b/plugins/shell/Cargo.toml index 2502b7823..5ab6d87e2 100644 --- a/plugins/shell/Cargo.toml +++ b/plugins/shell/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/single-instance/Cargo.toml b/plugins/single-instance/Cargo.toml index 9c4fc1390..109f8c3fc 100644 --- a/plugins/single-instance/Cargo.toml +++ b/plugins/single-instance/Cargo.toml @@ -8,6 +8,9 @@ edition = { workspace = true } rust-version = { workspace = true } exclude = [ "/examples" ] +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/sql/Cargo.toml b/plugins/sql/Cargo.toml index d6ae7bedc..4fc170a9b 100644 --- a/plugins/sql/Cargo.toml +++ b/plugins/sql/Cargo.toml @@ -8,7 +8,7 @@ edition = { workspace = true } rust-version = { workspace = true } [package.metadata.docs.rs] -features = [ "sqlite" ] +features = [ "dox", "sqlite" ] [dependencies] serde = { workspace = true } diff --git a/plugins/store/Cargo.toml b/plugins/store/Cargo.toml index a2ec52267..fee875efd 100644 --- a/plugins/store/Cargo.toml +++ b/plugins/store/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/stronghold/Cargo.toml b/plugins/stronghold/Cargo.toml index 709131c16..d425f3950 100644 --- a/plugins/stronghold/Cargo.toml +++ b/plugins/stronghold/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/updater/Cargo.toml b/plugins/updater/Cargo.toml index f2492ea21..76573fc68 100644 --- a/plugins/updater/Cargo.toml +++ b/plugins/updater/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] tauri = { workspace = true } serde = { workspace = true } diff --git a/plugins/upload/Cargo.toml b/plugins/upload/Cargo.toml index 0f4da100a..c7178ecf7 100644 --- a/plugins/upload/Cargo.toml +++ b/plugins/upload/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/websocket/Cargo.toml b/plugins/websocket/Cargo.toml index a9c00ba1c..439d71c2f 100644 --- a/plugins/websocket/Cargo.toml +++ b/plugins/websocket/Cargo.toml @@ -8,6 +8,9 @@ edition = { workspace = true } rust-version = { workspace = true } exclude = [ "/examples" ] +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/window-state/Cargo.toml b/plugins/window-state/Cargo.toml index b1f6c802d..52759d754 100644 --- a/plugins/window-state/Cargo.toml +++ b/plugins/window-state/Cargo.toml @@ -7,6 +7,9 @@ license = { workspace = true } edition = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] serde = { workspace = true } serde_json = { workspace = true } diff --git a/plugins/window/Cargo.toml b/plugins/window/Cargo.toml index 7e52814d6..229bbc3bd 100644 --- a/plugins/window/Cargo.toml +++ b/plugins/window/Cargo.toml @@ -6,6 +6,9 @@ edition = { workspace = true } authors = { workspace = true } license = { workspace = true } +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + [dependencies] tauri = { workspace = true } serde = { workspace = true } diff --git a/shared/template/Cargo.toml b/shared/template/Cargo.toml index 071f56548..00b6ca478 100644 --- a/shared/template/Cargo.toml +++ b/shared/template/Cargo.toml @@ -6,6 +6,9 @@ authors = { workspace = true } license = { workspace = true } links = "tauri-plugin-{{name}}" +[package.metadata.docs.rs] +features = [ "tauri/dox" ] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [build-dependencies] @@ -16,4 +19,4 @@ serde = { workspace = true } serde_json = { workspace = true } tauri = { workspace = true } log = { workspace = true } -thiserror = { workspace = true } \ No newline at end of file +thiserror = { workspace = true }