Closed George-Miao closed 1 year ago
docs.rs always builds docs with nightly Rust, so another approach is to enable doc_auto_cfg only with nightly builds. You can determine the channel in build.rs with rustc_version crate.
docs.rs
doc_auto_cfg
build.rs
rustc_version
Run build.rs everytime the doc is built is not really a good idea. I will stick with the manual meta w/ cfg approach.
docs.rs
always builds docs with nightly Rust, so another approach is to enabledoc_auto_cfg
only with nightly builds. You can determine the channel inbuild.rs
withrustc_version
crate.