Skip to content

Commit 4b6b869

Browse files
authored
chore: remove --cfg docsrs to fix docs.rs builds (#14347)
1 parent cdc5594 commit 4b6b869

7 files changed

Lines changed: 10 additions & 13 deletions

File tree

.changes/docsrs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
tauri: patch:bug
3+
tauri-build: patch:bug
4+
tauri-plugin: patch:bug
5+
tauri-runtime: patch:bug
6+
tauri-runtime-wry: patch:bug
7+
---
8+
9+
Fixed an issue that caused docs.rs builds to fail. No user facing changes.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ You can use `cargo install --path . --debug` to speed up test builds.
9898
You can build the Rust documentation locally running the following script:
9999

100100
```bash
101-
$ RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open
101+
$ cargo +nightly doc --all-features --open
102102
```
103103

104104
### Developing the JS API

crates/tauri-build/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ targets = [
2222
"x86_64-linux-android",
2323
"x86_64-apple-ios",
2424
]
25-
rustc-args = ["--cfg", "docsrs"]
26-
rustdoc-args = ["--cfg", "docsrs"]
2725

2826
[dependencies]
2927
anyhow = "1"

crates/tauri-plugin/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ rust-version.workspace = true
1212

1313
[package.metadata.docs.rs]
1414
features = ["build", "runtime"]
15-
rustc-args = ["--cfg", "docsrs"]
16-
rustdoc-args = ["--cfg", "docsrs"]
1715

1816
[features]
1917
build = [

crates/tauri-runtime-wry/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ license.workspace = true
1212
edition.workspace = true
1313
rust-version.workspace = true
1414

15-
[package.metadata.docs.rs]
16-
rustc-args = ["--cfg", "docsrs"]
17-
rustdoc-args = ["--cfg", "docsrs"]
18-
1915
[dependencies]
2016
wry = { version = "0.53.4", default-features = false, features = [
2117
"drag-drop",

crates/tauri-runtime/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ rust-version.workspace = true
1414

1515
[package.metadata.docs.rs]
1616
all-features = true
17-
rustc-args = ["--cfg", "docsrs"]
18-
rustdoc-args = ["--cfg", "docsrs"]
1917
default-target = "x86_64-unknown-linux-gnu"
2018
targets = [
2119
"x86_64-pc-windows-msvc",

crates/tauri/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ features = [
2626
"test",
2727
"specta",
2828
]
29-
rustc-args = ["--cfg", "docsrs"]
30-
rustdoc-args = ["--cfg", "docsrs"]
3129
default-target = "x86_64-unknown-linux-gnu"
3230
targets = [
3331
"x86_64-pc-windows-msvc",

0 commit comments

Comments
 (0)