linebender / kurbo

A Rust library for manipulating curves
Apache License 2.0
716 stars 69 forks source link

Enable `feature(doc_auto_cfg)` for docs.rs #359

Closed waywardmonkeys closed 2 months ago

waywardmonkeys commented 2 months ago

Docs built using this (like for docs.rs) will show what feature must be enabled for things that are cfg(feature = ...) gated.

This is a nightly only thing. If you want to run it locally, you can use:

RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
waywardmonkeys commented 2 months ago

I'm kind of unhappy that the feature doesn't handle the case of a #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] ... but at least this is better than nothing.

I will (eventually) have PRs coming for the other repos as appropriate ...