Skip to content

Commit

Permalink
cli: add version to header of generated files
Browse files Browse the repository at this point in the history
To help ensure that regeneration of files is repeatable.

PR #25
  • Loading branch information
wezm authored and BurntSushi committed Jan 15, 2020
1 parent f0f7d9f commit cceb05e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,11 @@ impl Writer {
writeln!(self.wtr, "//")?;
writeln!(self.wtr, "// {}", argv.join(" "))?;
writeln!(self.wtr, "//")?;
writeln!(self.wtr, "// ucd-generate is available on crates.io.")?;
writeln!(
self.wtr,
"// ucd-generate {} is available on crates.io.",
env!("CARGO_PKG_VERSION")
)?;
self.wrote_header = true;
Ok(())
}
Expand Down

0 comments on commit cceb05e

Please sign in to comment.