Closed azerupi closed 2 years ago
Already fixed in #203. I'll create a new patch release.
I'd wait with additional config flags until the doc-cfg syntax is stabilized.
I'll push out the new release as soon as #205 is merged.
Sorry I missed that, thanks for the quick reaction :+1:
Release 0.9 is out: https://docs.rs/stm32l0xx-hal/0.9.0/stm32l0xx_hal/
Docs.rs failed to build the documentation for v0.8.0: https://docs.rs/crate/stm32l0xx-hal/0.8.0/builds
From the logs:
This is caused by the exclusive MCU selection. I'm not sure if there is a great way to handle mutually exclusive features on docs.rs?
I think the best way would be to add
#[cfg(any(feature="xxx", doc))]
to enable everything in the doc generation. (https://doc.rust-lang.org/rustdoc/advanced-features.html#cfgdoc-documenting-platform-specific-or-feature-specific-information).Then in the future when it is stabilized we should add
#[doc(cfg(feature="xxx"))]
to mark some items as only available using certain features. https://doc.rust-lang.org/unstable-book/language-features/doc-cfg.html