diff --git a/.changes/fix-docs-build.md b/.changes/fix-docs-build.md new file mode 100644 index 00000000..1e6c0b1a --- /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 6ae1ca3f..267a39dc 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 4ce3b98e..11269de2 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 15e757bd..1b7476be 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 b3a2ca7d..3eb1075b 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 c0881b49..9b36b2e8 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 7ca49870..df4398a9 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 e355ff6c..2a8b5910 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 b281d2b0..cb37c08b 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 95f74bfe..8dc315f7 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 a5586cbe..bc91624a 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 06a19f4a..b6fa4547 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 fddbde5c..ad284e9f 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 e2280410..d3e6abe5 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 ea38618d..8967960a 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 25927a26..25189be5 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 f018daa1..c5e8036d 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 2502b782..5ab6d87e 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 9c4fc139..109f8c3f 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 d6ae7bed..4fc170a9 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 a2ec5226..fee875ef 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 709131c1..d425f395 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 f2492ea2..76573fc6 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 0f4da100..c7178ecf 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 a9c00ba1..439d71c2 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 b1f6c802..52759d75 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 7e52814d..229bbc3b 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 071f5654..00b6ca47 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 }