aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/base/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-06-03 19:10:01 +0200
committerGitHub <noreply@github.com>2024-06-03 17:10:01 +0000
commitf8985c5521cdf72a9137a7fa847043e5a789dfe0 (patch)
tree519ab8999e6d6c32fed65f0812ce6b36dbcb8359 /components/shared/base/lib.rs
parent48ab8d8847eadd0c94f43307860e880d4802a075 (diff)
downloadservo-f8985c5521cdf72a9137a7fa847043e5a789dfe0.tar.gz
servo-f8985c5521cdf72a9137a7fa847043e5a789dfe0.zip
base: Remove `ucd` dependency (#32424)
Remove the `ucd` dependency which has not been updated in 8 years. In addition, replace it with a generated UnicodeBlock enum which reflects the modern Unicode standard. This is generated via a Python script which is included in the repository. The generation is not part of the build process, because the Unicode database is hosted on the web and it does not change the frequently. This is done instead of bringing in the more up-to-date `unicode_blocks` dependency. `unicode_blocks` defines each block as constant, which means that they cannot be used in match statements -- which we do in Servo. Co-authored-by: Lauryn Menard <lauryn.menard@gmail.com>
Diffstat (limited to 'components/shared/base/lib.rs')
-rw-r--r--components/shared/base/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/shared/base/lib.rs b/components/shared/base/lib.rs
index e084f142112..062ece48e21 100644
--- a/components/shared/base/lib.rs
+++ b/components/shared/base/lib.rs
@@ -9,11 +9,13 @@
//! You should almost never need to add a data type to this crate. Instead look for
//! a more shared crate that has fewer dependents.
-use serde::{Deserialize, Serialize};
-
pub mod generic_channel;
pub mod id;
pub mod print_tree;
+pub mod text;
+mod unicode_block;
+
+use serde::{Deserialize, Serialize};
use webrender_api::Epoch as WebRenderEpoch;
/// A struct for denoting the age of messages; prevents race conditions.