From 20a025a0ebf9acf1ffabbaaf7a8f5b0a02a5d7a4 Mon Sep 17 00:00:00 2001 From: Luca BRUNO Date: Mon, 2 Aug 2021 15:15:51 +0000 Subject: [PATCH] lib: fix 'dox' feature This makes sure docs can be properly built when using the 'dox' feature. It should fix auto-builds on docs.rs. --- rust-bindings/rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bindings/rust/src/lib.rs b/rust-bindings/rust/src/lib.rs index 8919c232..11b36290 100644 --- a/rust-bindings/rust/src/lib.rs +++ b/rust-bindings/rust/src/lib.rs @@ -4,7 +4,7 @@ //! tools that combines a "git-like" model for committing and downloading bootable filesystem trees, //! along with a layer for deploying them and managing the bootloader configuration. -#![doc(html_root_url = "https://fkrull.gitlab.io/ostree-rs")] +#![cfg_attr(feature = "dox", feature(doc_cfg))] // Re-export our dependencies. See https://gtk-rs.org/blog/2021/06/22/new-release.html // "Dependencies are re-exported". Users will need e.g. `gio::File`, so this avoids