nihalpasham requested elliottt for a review on PR #9493.
nihalpasham opened PR #9493 from nihalpasham:main
to bytecodealliance:main
:
Summary
Enabled
--all-features
for Cranelift documentation via:
toml [package.metadata.docs.rs] all-features = true
Added
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
to display feature requirements in documentation when building ondocs.rs
.- Verified functionality using:
bash RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --open
nihalpasham requested wasmtime-compiler-reviewers for a review on PR #9493.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
You need to add this to
cranelift/codegen/Cargo.toml
, notcranelift/Cargo.toml
.cranelift/Cargo.toml
is for the cranelift-tools crate which isn't published to crates.io anyway. Also instead of enabling all non-default features, I would suggest only enablingall-arch
. Some likesouper-harvest
anddisas
don't affect the public api while still making building the documentation slower.
nihalpasham updated PR #9493.
nihalpasham submitted PR review.
nihalpasham created PR review comment:
Updated
cranelift/codegen/Cargo.toml
to enable theall-arch
feature:
toml [package.metadata.docs.rs] features = ["all-arch"]
Verified feature requirements are displayed in the docs using:
bash RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --open
alexcrichton submitted PR review:
Thanks!
alexcrichton merged PR #9493.
Last updated: Dec 23 2024 at 12:05 UTC