From cceb05ea712fc35f8417fb75949145a3c87ad09f Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Thu, 16 Jan 2020 04:36:20 +1100 Subject: [PATCH] cli: add version to header of generated files To help ensure that regeneration of files is repeatable. PR #25 --- src/writer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/writer.rs b/src/writer.rs index a37cad6..9b389cb 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -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(()) }