georust / wkt

Rust read/write support for well-known text (WKT)
https://crates.io/crates/wkt
Apache License 2.0
50 stars 25 forks source link

Document all feature, and show feature requirements #98

Closed michaelkirk closed 2 years ago

michaelkirk commented 2 years ago

This is similar to what we do in geojson and elsewhere. Though I just learned about doc_auto_cfg which makes this way easier by automatically annotating any required items, rather than needing to try to sprinkle a bunch of calls all over like:

#[cfg_attr(docsrs, doc(cfg(feature = "geo-types")))]
mod my_geo_types_module;

e.g.

Screen Shot 2022-05-04 at 3 19 26 PM
michaelkirk commented 2 years ago

bors r=frewsxcv

bors[bot] commented 2 years ago

Build succeeded: