From d4a30235356428f87b1373d41bf15a01d38341c5 Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sun, 27 Jul 2025 17:21:07 +0200 Subject: [PATCH] big --- .gitignore | 1 + build.sh | 14 ++++++++------ index.html | 12 ++++++++++++ 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 index.html diff --git a/.gitignore b/.gitignore index 37d04b5..fee805a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /doc /rust +/www-root diff --git a/build.sh b/build.sh index 9ca19a9..4596e18 100755 --- a/build.sh +++ b/build.sh @@ -10,9 +10,11 @@ cd rust ./configure \ --set llvm.download-ci-llvm=true \ - --set rust.download-rustc=true + --set rust.llvm-tools=false \ + --set rust.llvm-bitcode-linker=false \ + --set build.optimized-compiler-builtins=false # necessary to make cross-doc work for all targets -targets=(x86_64-unknown-linux-gnu x86_64-pc-windows-gnu aarch64-apple-darwin) +targets=(x86_64-unknown-linux-gnu x86_64-pc-windows-msvc aarch64-apple-darwin) # bootstrap uses this var to perform CI detection :( unset CI @@ -27,10 +29,10 @@ for target in "${targets[@]}"; do export RUSTDOCFLAGS="--document-private-items \ --document-hidden-items \ --html-before-content=$root/before.html \ - --extend-css=$root/style.css" + --extend-css=$root/style.css \ + --cap-lints=warn" - ./x doc library --target "$target" + ./x doc library --target "$target" --stage 1 - mkdir "$root/www-root/$target" - cp -r "./build/$target/doc" "$root/www-root/$target" + cp -rT "./build/$target/doc/" "$root/www-root/$target" done diff --git a/index.html b/index.html new file mode 100644 index 0000000..144f75b --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + std internal docs + + + +
redirecting to /x86_64-unknown-linux-gnu
+ +