Skip to content

Commit 50f20a3

Browse files
bors[bot]urschrei
andauthored
Merge #138
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 <shugel@tcd.ie>
2 parents e726d34 + 9cd8b44 commit 50f20a3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ name = "parse"
2626
harness = false
2727

2828
[package.metadata.docs.rs]
29-
features = [ "geo-types" ]
29+
all-features = true
30+
rustdoc-args = ["--cfg", "docsrs"]

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@
264264
//! implementations which may be useful if you wish to perform this kind of processing yourself and require
265265
//! more granular control over performance and / or memory allocation.
266266
267+
// only enables the `doc_cfg` feature when
268+
// the `docsrs` configuration attribute is defined
269+
#[cfg_attr(docsrs, feature(doc_cfg))]
267270
#[cfg(feature = "geo-types")]
268271
use geo_types;
269272
use serde;

0 commit comments

Comments
 (0)