Skip to content

Commit

Permalink
Avoid fips feature for docs.rs
Browse files Browse the repository at this point in the history
The docs.rs environment has golang installed, but doesn't have
the environment variables needed to make it actually work:
rust-lang/docs.rs#1303

So avoid that entirely.
  • Loading branch information
ctz committed Mar 1, 2024
1 parent 03f52c1 commit 384b3d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
"</script>"
- name: cargo doc
run: cargo doc --locked --all-features --no-deps --package rustls
# keep features in sync with Cargo.toml `[package.metadata.docs.rs]` section
run: cargo doc --locked --features read_buf,ring --no-deps --package rustls
env:
RUSTDOCFLAGS: -Dwarnings --cfg=docsrs --html-after-content tag.html

Expand Down
3 changes: 2 additions & 1 deletion rustls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ harness = false
required-features = ["ring"]

[package.metadata.docs.rs]
all-features = true
# all non-default features except fips (cannot build on docs.rs environment)
features = ["read_buf", "ring"]
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.cargo_check_external_types]
Expand Down

0 comments on commit 384b3d6

Please sign in to comment.