Skip to content

Commit 695a66b

Browse files
authored
Merge pull request #16 from t4lz/fix-docs-build2
Fix docs build for docs.rs by turning on feature only on docs.rs builds
2 parents 1439731 + 0b55ff6 commit 695a66b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Adapted from rustc's path_relative_from
1212
// https://github.com/rust-lang/rust/blob/e1d0de82cc40b666b88d4a6d2c9dcbc81d7ed27f/src/librustc_back/rpath.rs#L116-L158
1313

14+
#![cfg_attr(docsrs, feature(doc_cfg))]
15+
1416
use std::path::*;
1517

1618
/// Construct a relative path from a provided base directory path to the provided path.

0 commit comments

Comments
 (0)