From e96c838432cc028b50cf08f3ef7ff4c9672c7cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Mon, 26 Jun 2023 20:42:23 +0000 Subject: [PATCH] Deprecate `boa_unicode` (#3069) --- Cargo.lock | 2 +- boa_unicode/Cargo.toml | 4 ++-- boa_unicode/README.md | 28 +++------------------------- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c6f590259a..37c4c0294f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -594,7 +594,7 @@ dependencies = [ [[package]] name = "boa_unicode" -version = "0.16.0" +version = "0.16.1" dependencies = [ "unicode-general-category", ] diff --git a/boa_unicode/Cargo.toml b/boa_unicode/Cargo.toml index 65bb7f87c3..2ed1585254 100644 --- a/boa_unicode/Cargo.toml +++ b/boa_unicode/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "boa_unicode" -description = "Unicode support for the Boa JavaScript engine." +description = "DEPRECATED. Use the icu_properties crate instead." keywords = ["javascript", "compiler", "lexer", "parser", "unicode"] categories = ["parsing", "no-std"] -version.workspace = true +version = "0.16.1" edition.workspace = true authors.workspace = true license.workspace = true diff --git a/boa_unicode/README.md b/boa_unicode/README.md index b0e373cfd8..e9234a1d84 100644 --- a/boa_unicode/README.md +++ b/boa_unicode/README.md @@ -1,26 +1,4 @@ -# boa-unicode +# DEPRECATED -`boa-unicode` defines the trait to provide methods for querying properties or classes for Unicode identifiers. These properties are used to determine if a code point (char) is valid for being the start/part of an identifier in lexer and parser. - -Current version: Unicode 15.0.0 - -## Development - -The Unicode character tables used to query properties are generated by `build_tables.js`. This script depends on [Node.js](https://nodejs.org/en/) and [rustfmt](https://github.com/rust-lang/rustfmt). You can run the script with: - -``` -$ node build_tables.js -``` - -or with [npm](https://www.npmjs.com/): - -``` -$ npm run build-tables -``` - -The configurations are defined as constants in the script. Please check the comments in `build_tables.js` for more information. - -## More Info - -- [UnicodeĀ® Standard Annex #31 - UNICODE IDENTIFIER AND PATTERN SYNTAX](https://unicode.org/reports/tr31/) -- [UnicodeĀ® Standard Annex #44 - UNICODE CHARACTER DATABASE](https://unicode.org/reports/tr44/) +This crate was replaced with the [`icu_properties`](https://crates.io/crates/icu_properties) crate +and is now unmaintained.