Skip to content

Commit 880d294

Browse files
committed
Auto merge of #2300 - asomers:const-fn-docs, r=Amanieu
Set const-extern-fn when building docs
2 parents 6fc98f1 + b083a61 commit 880d294

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ description = """
1515
Raw FFI bindings to platform libraries like libc.
1616
"""
1717

18+
[package.metadata.docs.rs]
19+
features = ["const-extern-fn", "extra_traits"]
20+
1821
[dependencies]
1922
rustc-std-workspace-core = { version = "1.0.0", optional = true }
2023

ci/dox.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ while read -r target; do
5151

5252
# If cargo doc fails, then try with unstable feature:
5353
if ! cargo doc --target "${target}" \
54-
--no-default-features --features extra_traits ; then
54+
--no-default-features --features const-extern-fn,extra_traits ; then
5555
cargo doc --target "${target}" \
5656
-Z build-std=core,alloc \
57-
--no-default-features --features extra_traits
57+
--no-default-features --features const-extern-fn,extra_traits
5858
fi
5959

6060
mkdir -p "${TARGET_DOC_DIR}/${target}"

0 commit comments

Comments
 (0)