fix(docs): set the --cfg docsrs arg for docs.rs build (#8123)

This commit is contained in:
Lucas Fernandes Nogueira
2023-10-28 08:04:35 -03:00
committed by GitHub
parent 74d2464d0e
commit 0601d5dddb
15 changed files with 73 additions and 62 deletions

View File

@@ -78,7 +78,7 @@ The code for Tauri Core is located in `[Tauri repo root]/core/tauri`, and the Ru
You can build the Rust documentation locally running the following script:
```bash
$ RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --open
$ RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open
```
### Developing the JS API