chore: remove --cfg docsrs to fix docs.rs builds (#14347)

This commit is contained in:
Fabian-Lars
2025-10-22 11:33:30 +02:00
committed by GitHub
parent cdc5594286
commit 4b6b8690ab
7 changed files with 10 additions and 13 deletions

9
.changes/docsrs.md Normal file
View File

@@ -0,0 +1,9 @@
---
tauri: patch:bug
tauri-build: patch:bug
tauri-plugin: patch:bug
tauri-runtime: patch:bug
tauri-runtime-wry: patch:bug
---
Fixed an issue that caused docs.rs builds to fail. No user facing changes.

View File

@@ -98,7 +98,7 @@ You can use `cargo install --path . --debug` to speed up test builds.
You can build the Rust documentation locally running the following script:
```bash
$ RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open
$ cargo +nightly doc --all-features --open
```
### Developing the JS API

View File

@@ -22,8 +22,6 @@ targets = [
"x86_64-linux-android",
"x86_64-apple-ios",
]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
anyhow = "1"

View File

@@ -12,8 +12,6 @@ rust-version.workspace = true
[package.metadata.docs.rs]
features = ["build", "runtime"]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
build = [

View File

@@ -12,10 +12,6 @@ license.workspace = true
edition.workspace = true
rust-version.workspace = true
[package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
wry = { version = "0.53.4", default-features = false, features = [
"drag-drop",

View File

@@ -14,8 +14,6 @@ rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-pc-windows-msvc",

View File

@@ -26,8 +26,6 @@ features = [
"test",
"specta",
]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-pc-windows-msvc",