baoyachi / shadow-rs

A build-time information stored in your rust project.(binary,lib,cdylib,dylib)
https://docs.rs/shadow-rs
MIT License
444 stars 40 forks source link

Allow missing_docs for deprecated CLAP_VERSION constant #160

Closed qartik closed 3 months ago

qartik commented 3 months ago

Without this change, using #![deny(missing_docs)] fails:

error: missing documentation for a constant
   --> /Users/kartik/GH/project/target/debug/build/project-6de82e90c60d85bc/out/shadow.rs:588:1
    |
588 | pub const CLAP_VERSION:&str = shadow_rs::formatcp!(r#"{}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:13:9
    |
13  | #![deny(missing_docs)]
    |         ^^^^^^^^^^^^

Another possible change is to remove the deprecated constant itself.

baoyachi commented 3 months ago

Thx @qartik .New version publised,please use:

shadow-rs = "0.28.0"