I built this branch and made it available via rustup toolchain link stage2 build/host/stage2
. This toolchain can run cargo doc
, but core
and std
and such only support my the host as a target.
From here, I made a new crate via cargo new --lib empty
, and filled lib.rs
with:
#![feature(no_core)]
#![no_std]
#![no_core]
This lets me document the crate for other targets, so:
for target in \
aarch64-apple-darwin \
aarch64-unknown-linux-gnu \
i686-pc-windows-msvc \
i686-unknown-linux-gnu \
x86_64-apple-darwin \
x86_64-pc-windows-gnu \
x86_64-pc-windows-msvc \
x86_64-unknown-linux-gnu
do
cargo +stage2 rustdoc --target $target -- -Zunstable-options --output-format json
jq .target < target/$target/doc/*.json > $target.json
done
The resulting target data is attached.