Skip to content

Commit 71e7593

Browse files
committed
Add and implement the space-discarding feature
1 parent 6941f8d commit 71e7593

4 files changed

Lines changed: 758 additions & 1 deletion

File tree

Cargo.lock

Lines changed: 205 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ categories = ["encoding", "text-processing"]
1212
keywords = ["unicode", "symbols"]
1313

1414
[features]
15-
default = ["numeral-systems", "styling"]
15+
default = ["numeral-systems", "styling", "space-discarding"]
1616
numeral-systems = ["dep:chinese-number"]
1717
styling = []
18+
space-discarding = ["dep:icu_properties"]
1819
_test-unicode-conformance = ["dep:ureq", "dep:rustls-webpki"]
1920

2021
[dependencies]
2122
chinese-number = { version = "0.7.7", default-features = false, features = ["number-to-chinese"], optional = true }
23+
icu_properties = { version = "2.2.0", optional = true }
2224

2325
[dev-dependencies]
2426
siphasher = "1.0.2"

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ pub mod numeral_systems;
1717
#[cfg(feature = "styling")]
1818
pub mod styling;
1919

20+
#[cfg(feature = "space-discarding")]
21+
pub mod space_discarding;
22+
2023
/// A module of definitions.
2124
#[derive(Debug, Copy, Clone)]
2225
pub struct Module(&'static [(&'static str, Binding)]);

0 commit comments

Comments
 (0)