Skip to content

Commit

Permalink
Merge #138
Browse files Browse the repository at this point in the history
138: Fix feature labels for docs.rs r=urschrei a=urschrei

Following up on #136 (comment)

See here: https://stackoverflow.com/a/61417700/416626

Co-authored-by: Stephan Hügel <[email protected]>
  • Loading branch information
bors[bot] and urschrei authored Sep 3, 2020
2 parents e726d34 + 9cd8b44 commit 50f20a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ name = "parse"
harness = false

[package.metadata.docs.rs]
features = [ "geo-types" ]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@
//! implementations which may be useful if you wish to perform this kind of processing yourself and require
//! more granular control over performance and / or memory allocation.

// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#[cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(feature = "geo-types")]
use geo_types;
use serde;
Expand Down

0 comments on commit 50f20a3

Please sign in to comment.