Add a main.rs to generate the compressed representation

This commit is contained in:
David Tolnay 2022-05-16 14:18:35 -07:00
parent f231662c62
commit 115e980050
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 24 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/target
/Cargo.lock
/UCD
/UCD.zip

5
generate/Cargo.toml Normal file
View File

@ -0,0 +1,5 @@
[package]
name = "unicode-ident-generate"
version = "0.0.0"
edition = "2021"
publish = false

15
generate/src/main.rs Normal file
View File

@ -0,0 +1,15 @@
// To regenerate tables, run the following in the repo root:
//
// $ cargo install ucd-generate
// $ curl -LO https://www.unicode.org/Public/zipped/14.0.0/UCD.zip
// $ unzip UCD.zip -d UCD
// $ ucd-generate property-bool UCD --include XID_Start,XID_Continue > generate/src/ucd.rs
// $ cargo run --manifest-path generate/Cargo.toml
#[rustfmt::skip]
#[allow(dead_code)]
mod ucd;
fn main() {
/* TODO */
}