From: Luca BRUNO Date: Mon, 2 Aug 2021 15:15:51 +0000 (+0000) Subject: lib: fix 'dox' feature X-Git-Tag: archive/raspbian/2022.4-1+rpi1^2~9^2^2~20^2~63 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=20a025a0ebf9acf1ffabbaaf7a8f5b0a02a5d7a4;p=ostree.git 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. --- 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