mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-23 07:29:52 +00:00
Add a main.rs to generate the compressed representation
This commit is contained in:
parent
f231662c62
commit
115e980050
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/target
|
||||||
|
/Cargo.lock
|
||||||
|
/UCD
|
||||||
|
/UCD.zip
|
5
generate/Cargo.toml
Normal file
5
generate/Cargo.toml
Normal 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
15
generate/src/main.rs
Normal 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 */
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user