From 1ca57407d378f38451d5000c9b4ca27e380741ad Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 26 Feb 2023 19:09:13 +0900 Subject: [PATCH] Use git version of unicode_names2 to avoid alias search failure --- Cargo.lock | 8 +++++--- Cargo.toml | 1 + compiler/parser/Cargo.toml | 2 +- stdlib/Cargo.toml | 2 +- vm/Cargo.toml | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9b811d063..57721dc7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2933,9 +2933,11 @@ checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "unicode_names2" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029df4cc8238cefc911704ff8fa210853a0f3bce2694d8f51181dd41ee0f3301" +version = "0.6.0" +source = "git+https://github.com/youknowone/unicode_names2.git?tag=v0.6.0+character-alias#4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" +dependencies = [ + "phf", +] [[package]] name = "utf8parse" diff --git a/Cargo.toml b/Cargo.toml index f305420ba..cb5603171 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ static_assertions = "1.1" syn = "1.0.91" thiserror = "1.0" thread_local = "1.1.4" +unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", tag = "v0.6.0+character-alias" } widestring = "0.5.1" [features] diff --git a/compiler/parser/Cargo.toml b/compiler/parser/Cargo.toml index 56f3d161f..40bf75e50 100644 --- a/compiler/parser/Cargo.toml +++ b/compiler/parser/Cargo.toml @@ -27,10 +27,10 @@ log = { workspace = true } num-bigint = { workspace = true } num-traits = { workspace = true } thiserror = { workspace = true } +unicode_names2 = { workspace = true } unic-emoji-char = "0.9.0" unic-ucd-ident = "0.9.0" -unicode_names2 = "0.5.0" lalrpop-util = "0.19.8" phf = "0.11.1" rustc-hash = "1.1.0" diff --git a/stdlib/Cargo.toml b/stdlib/Cargo.toml index ea326516f..6b76f65c8 100644 --- a/stdlib/Cargo.toml +++ b/stdlib/Cargo.toml @@ -57,7 +57,7 @@ sha3 = "0.10.1" blake2 = "0.10.4" ## unicode stuff -unicode_names2 = "0.5.0" +unicode_names2 = { workspace = true } # TODO: use unic for this; needed for title case: # https://github.com/RustPython/RustPython/pull/832#discussion_r275428939 unicode-casing = "0.1.0" diff --git a/vm/Cargo.toml b/vm/Cargo.toml index 487b3eec8..841b5c519 100644 --- a/vm/Cargo.toml +++ b/vm/Cargo.toml @@ -81,7 +81,7 @@ sre-engine = "0.4.1" # sre-engine = { path = "../../sre-engine" } ## unicode stuff -unicode_names2 = "0.5.1" +unicode_names2 = { workspace = true } # TODO: use unic for this; needed for title case: # https://github.com/RustPython/RustPython/pull/832#discussion_r275428939 unicode-casing = "0.1.0"