Skip to content

Commit

Permalink
Reinstate proc_macro_diagnostics if built with nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
petekubiak committed Oct 24, 2024
1 parent 58e37e8 commit db5e509
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ector/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
if std::env::var_os("CARGO_FEATURE_NIGHTLY").is_some() {
println!("cargo:rustc-cfg=nightly");
}
}
1 change: 1 addition & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ proc-macro2 = "1.0"

[features]
std = []
nightly = []
2 changes: 2 additions & 0 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![allow(incomplete_features)]
#![cfg(feature = "nightly")]
#![feature(proc_macro_diagnostic)]

extern crate proc_macro;
mod actor;
Expand Down

0 comments on commit db5e509

Please sign in to comment.