summaryrefslogtreecommitdiff
path: root/ci/dox.sh
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-07-25 07:09:43 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-07-25 23:57:46 +0900
commit45317a0c2c12b51be013cd5194dd2a89c092cb41 (patch)
tree68fa24601f0ce4005c011d46878eb02e0e989dcc /ci/dox.sh
parent83c304407d14ab7f6fde129be3d5e4c8b0d14512 (diff)
downloadrust-libc-45317a0c2c12b51be013cd5194dd2a89c092cb41.tar.gz
Use `build-std` feature instead of using `cargo-xbuild`
Diffstat (limited to 'ci/dox.sh')
-rw-r--r--ci/dox.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/dox.sh b/ci/dox.sh
index 3b15689613..67a0a75e76 100644
--- a/ci/dox.sh
+++ b/ci/dox.sh
@@ -19,7 +19,6 @@ if ! rustc --version | grep -E "nightly" ; then
fi
rustup component add rust-src
-cargo +nightly install cargo-xbuild
# List all targets that do currently build successfully:
# shellcheck disable=SC1003
@@ -50,10 +49,11 @@ while read -r target; do
# Enable extra configuration flags:
export RUSTDOCFLAGS="--cfg freebsd11"
- # If cargo doc fails, then try xargo:
+ # If cargo doc fails, then try with unstable feature:
if ! cargo doc --target "${target}" \
--no-default-features --features extra_traits ; then
- cargo xdoc --target "${target}" \
+ cargo doc --target "${target}" \
+ -Z build-std=core,alloc \
--no-default-features --features extra_traits
fi