Skip to content

Commit

Permalink
fix(docs): enable tauri/dox feature on docs.rs build (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Aug 10, 2023
1 parent 4ab90f0 commit d5a7c77
Show file tree
Hide file tree
Showing 28 changed files with 111 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .changes/fix-docs-build.md
Original file line number Diff line number Diff line change
@@ -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.

3 changes: 3 additions & 0 deletions plugins/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }

[package.metadata.docs.rs]
features = [ "tauri/dox" ]

[dependencies]
tauri = { workspace = true }
3 changes: 3 additions & 0 deletions plugins/authenticator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/autostart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/clipboard-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
3 changes: 3 additions & 0 deletions plugins/dialog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/global-shortcut/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/localhost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
3 changes: 3 additions & 0 deletions plugins/notification/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
3 changes: 3 additions & 0 deletions plugins/os/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/persisted-scope/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/positioner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/process/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }

[package.metadata.docs.rs]
features = [ "tauri/dox" ]

[dependencies]
tauri = { workspace = true }
3 changes: 3 additions & 0 deletions plugins/shell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/single-instance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion plugins/sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = { workspace = true }
rust-version = { workspace = true }

[package.metadata.docs.rs]
features = [ "sqlite" ]
features = [ "dox", "sqlite" ]

[dependencies]
serde = { workspace = true }
Expand Down
3 changes: 3 additions & 0 deletions plugins/store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/stronghold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/updater/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/upload/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/websocket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/window-state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 3 additions & 0 deletions plugins/window/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
5 changes: 4 additions & 1 deletion shared/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -16,4 +19,4 @@ serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
thiserror = { workspace = true }

0 comments on commit d5a7c77

Please sign in to comment.