nihalpasham requested elliottt for a review on PR #9493.
nihalpasham opened PR #9493 from nihalpasham:main to bytecodealliance:main:
Summary
Enabled
--all-featuresfor Cranelift documentation via:
toml [package.metadata.docs.rs] all-features = trueAdded
#![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.tomlis 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-harvestanddisasdon'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.tomlto enable theall-archfeature:
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 06 2025 at 06:05 UTC