Skip to content

Commit

Permalink
Merge pull request #32 from dtolnay/struct
Browse files Browse the repository at this point in the history
Rename generated file from version.rs to version.expr
  • Loading branch information
dtolnay committed Jun 20, 2022
2 parents d1a611f + 95e3bfd commit e21c23d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ fn main() {

let version = format!("{:#?}\n", version);
let out_dir = env::var_os("OUT_DIR").expect("OUT_DIR not set");
let out_file = Path::new(&out_dir).join("version.rs");
fs::write(out_file, version).expect("failed to write version.rs");
let out_file = Path::new(&out_dir).join("version.expr");
fs::write(out_file, version).expect("failed to write version.expr");
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ use crate::error::Error;
use crate::version::Version;
use proc_macro::TokenStream;

const RUSTVERSION: Version = include!(concat!(env!("OUT_DIR"), "/version.rs"));
const RUSTVERSION: Version = include!(concat!(env!("OUT_DIR"), "/version.expr"));

#[proc_macro_attribute]
pub fn stable(args: TokenStream, input: TokenStream) -> TokenStream {
Expand Down

0 comments on commit e21c23d

Please sign in to comment.