-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show features (futures) in docs (#151)
The fact that there is a `futures` feature flag and a `block_on` method was a bit hard to discover. At least for me. That lead me to create #148. Turns out it was not needed. To make it more discoverable, this PR makes docs.rs build the documentation with all features active, so the extra functionality they enable are visible. It also uses the unstable `doc_cfg` attribute to make it more obvious in the docs that those items are feature gated. This is taken more or less directly from how the tokio crate does the same thing. Co-authored-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
jobs: | ||
# Check docs | ||
- job: ${{ parameters.name }} | ||
displayName: Check docs | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
steps: | ||
- template: azure-install-rust.yml | ||
parameters: | ||
rust_version: ${{ parameters.rust }} | ||
|
||
- script: | | ||
RUSTDOCFLAGS="--cfg docsrs" cargo doc --lib --no-deps --all-features | ||
displayName: Check docs | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters