Repository: seanmonstar/reqwest (language: rust)

Issue:
Failed to build reqwest v0.11.15 doc
From [docs.rs](https://docs.rs/crate/reqwest/0.11.15/builds/771037):

```
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting reqwest v0.11.15 (/opt/rustwide/workdir)
[INFO] [stderr] error: The `http3` feature is unstable, and requires the `RUSTFLAGS='--cfg reqwest_unstable'` environment variable to be set.
[INFO] [stderr]    --> src/lib.rs:223:1
[INFO] [stderr]     |
[INFO] [stderr] 223 | / compile_error!(
[INFO] [stderr] 224 | |     "\
[INFO] [stderr] 225 | |     The `http3` feature is unstable, and requires the \
[INFO] [stderr] 226 | |     `RUSTFLAGS='--cfg reqwest_unstable'` environment variable to be set.\
[INFO] [stderr] 227 | | "
[INFO] [stderr] 228 | | );
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] error: could not document `reqwest`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
```


Discussion / hints:

Fix patch:
diff --git a/Cargo.toml b/Cargo.toml
index 1f05fed52..69f5a3107 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ autotests = true
 
 [package.metadata.docs.rs]
 all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
+rustdoc-args = ["--cfg", "docsrs", "--cfg", "reqwest_unstable"]
 targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
 
 [package.metadata.playground]


Test patch: