Add @generated comment to the top of tables.rs

This commit is contained in:
David Tolnay 2022-06-13 15:36:42 -07:00
parent 84e8e04650
commit ad753364e0
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 19 additions and 0 deletions

View File

@ -149,6 +149,19 @@ fn main() {
}
let mut out = Output::new();
writeln!(
out,
"// \x40generated by ../generate. To regenerate, run the following in the repo root:",
);
writeln!(out, "//");
writeln!(
out,
"// $ curl -LO https://www.unicode.org/Public/zipped/14.0.0/UCD.zip",
);
writeln!(out, "// $ unzip UCD.zip -d UCD");
writeln!(out, "// $ cargo run --manifest-path generate/Cargo.toml");
writeln!(out);
writeln!(out, "const T: bool = true;");
writeln!(out, "const F: bool = false;");
writeln!(out);

6
src/tables.rs generated
View File

@ -1,3 +1,9 @@
// @generated by ../generate. To regenerate, run the following in the repo root:
//
// $ curl -LO https://www.unicode.org/Public/zipped/14.0.0/UCD.zip
// $ unzip UCD.zip -d UCD
// $ cargo run --manifest-path generate/Cargo.toml
const T: bool = true;
const F: bool = false;