Skip to content

Commit

Permalink
Enable configuration-gated admonitions on feature-gated APIs in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Jan 6, 2022
1 parent 92cbf92 commit 3c61944
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
toolchain: "nightly"
default: true

- run: cargo doc --no-deps --features cookies,json
- run: cargo doc --no-deps --features cookies,json,nightly

- uses: JamesIves/github-pages-deploy-action@releases/v3
with:
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
exclude = [".*", "benchmarks", "media", "src/cookies/psl/list/*/"]

[package.metadata.docs.rs]
features = ["cookies", "json"]
features = ["cookies", "json", "nightly"]

[badges.maintenance]
status = "actively-developed"
Expand All @@ -23,6 +23,7 @@ default = ["http2", "static-curl", "text-decoding"]
cookies = ["httpdate"]
http2 = ["curl/http2"]
json = ["serde", "serde_json"]
nightly = []
psl = ["httpdate", "parking_lot", "publicsuffix"]
spnego = ["curl-sys/spnego"]
static-curl = ["curl/static-curl"]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@
html_favicon_url = "https://raw.githubusercontent.com/sagebind/isahc/master/media/icon.png"
)]
#![deny(unsafe_code)]
#![cfg_attr(feature = "nightly", feature(doc_cfg))]
#![cfg_attr(feature = "nightly", feature(doc_auto_cfg))]
#![warn(
future_incompatible,
missing_debug_implementations,
Expand Down

0 comments on commit 3c61944

Please sign in to comment.