We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c316d7 commit bf9ebeaCopy full SHA for bf9ebea
serde/build.rs
@@ -14,13 +14,20 @@ fn main() {
14
};
15
16
if minor >= 77 {
17
+ println!("cargo:rustc-check-cfg=cfg(no_diagnostic_namespace)");
18
println!("cargo:rustc-check-cfg=cfg(no_serde_derive)");
19
}
20
21
// Current minimum supported version of serde_derive crate is Rust 1.61.
22
if minor < 61 {
23
println!("cargo:rustc-cfg=no_serde_derive");
24
25
+
26
+ // Support for the `#[diagnostic]` tool attribute namespace
27
+ // https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html#diagnostic-attributes
28
+ if minor < 78 {
29
+ println!("cargo:rustc-cfg=no_diagnostic_namespace");
30
+ }
31
32
33
fn rustc_minor_version() -> Option<u32> {
0 commit comments