From 0b55ff6450f25247f2acd12c060491c235a98c0b Mon Sep 17 00:00:00 2001 From: t4lz Date: Sun, 24 Nov 2024 20:28:55 +0100 Subject: [PATCH] Set doc_cfg on docs.rs builds --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index d5d5091..34233b3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,8 @@ // Adapted from rustc's path_relative_from // https://github.com/rust-lang/rust/blob/e1d0de82cc40b666b88d4a6d2c9dcbc81d7ed27f/src/librustc_back/rpath.rs#L116-L158 +#![cfg_attr(docsrs, feature(doc_cfg))] + use std::path::*; /// Construct a relative path from a provided base directory path to the provided path.