Michael-F-Bryan / include_dir

The logical evolution of the include_str macro for embedding a directory tree into your binary.
https://michael-f-bryan.github.io/include_dir
MIT License
339 stars 38 forks source link

Enabling "glob" feature makes compilation fail on stable #70

Closed aldanor closed 2 years ago

aldanor commented 2 years ago
error[E0658]: `#[doc(cfg)]` is experimental
   --> .../include_dir-0.7.1/src/lib.rs:102:1
    |
102 | #[doc(cfg(feature = "glob"))]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I don't think you need it at all because since recently #[cfg] implies #[doc(cfg)] (https://github.com/rust-lang/rust/pull/89596).

Also, in some very rare cases when it may not work and you need to do it manually, you can do this:

repi commented 2 years ago

we ran into this today also when trying to upgrade to the new 0.7.1 version, blocking the upgrade