Source code
Revision control
Copy as Markdown
Other Tools
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.82"
name = "icu_normalizer"
version = "2.0.0"
authors = ["The ICU4X Project Developers"]
build = false
include = [
"data/**/*",
"src/**/*",
"examples/**/*",
"benches/**/*",
"tests/**/*",
"Cargo.toml",
"LICENSE",
"README.md",
"build.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "API for normalizing text into Unicode Normalization Forms"
readme = "README.md"
categories = ["internationalization"]
license = "Unicode-3.0"
[package.metadata.docs.rs]
all-features = true
[features]
compiled_data = [
"dep:icu_normalizer_data",
"icu_properties?/compiled_data",
"icu_provider/baked",
]
datagen = [
"serde",
"dep:databake",
"icu_properties",
"icu_collections/databake",
"zerovec/databake",
"icu_properties?/datagen",
"icu_provider/export",
]
default = [
"compiled_data",
"utf8_iter",
"utf16_iter",
]
experimental = []
icu_properties = ["dep:icu_properties"]
serde = [
"dep:serde",
"icu_collections/serde",
"zerovec/serde",
"icu_properties?/serde",
"icu_provider/serde",
]
utf16_iter = [
"dep:utf16_iter",
"write16",
]
utf8_iter = ["dep:utf8_iter"]
[lib]
name = "icu_normalizer"
path = "src/lib.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[bench]]
name = "bench"
path = "benches/bench.rs"
harness = false
required-features = [
"utf16_iter",
"utf8_iter",
]
[[bench]]
name = "canonical_composition"
path = "benches/canonical_composition.rs"
[[bench]]
name = "canonical_decomposition"
path = "benches/canonical_decomposition.rs"
[[bench]]
name = "composing_normalizer_nfc"
path = "benches/composing_normalizer_nfc.rs"
[[bench]]
name = "composing_normalizer_nfkc"
path = "benches/composing_normalizer_nfkc.rs"
[[bench]]
name = "decomposing_normalizer_nfd"
path = "benches/decomposing_normalizer_nfd.rs"
[[bench]]
name = "decomposing_normalizer_nfkd"
path = "benches/decomposing_normalizer_nfkd.rs"
[dependencies.databake]
version = "0.2.0"
features = ["derive"]
optional = true
default-features = false
[dependencies.displaydoc]
version = "0.2.3"
default-features = false
[dependencies.icu_collections]
version = "~2.0.0"
default-features = false
[dependencies.icu_normalizer_data]
version = "~2.0.0"
optional = true
default-features = false
[dependencies.icu_properties]
version = "~2.0.0"
optional = true
default-features = false
[dependencies.icu_provider]
version = "2.0.0"
default-features = false
[dependencies.serde]
version = "1.0.110"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.smallvec]
version = "1.10.0"
default-features = false
[dependencies.utf16_iter]
version = "1.0.2"
optional = true
default-features = false
[dependencies.utf8_iter]
version = "1.0.2"
optional = true
default-features = false
[dependencies.write16]
version = "1.0.0"
features = ["alloc"]
optional = true
default-features = false
[dependencies.zerovec]
version = "0.11.1"
default-features = false
[dev-dependencies.arraystring]
version = "0.3.0"
[dev-dependencies.arrayvec]
version = "0.7.2"
default-features = false
[dev-dependencies.atoi]
version = "2.0.0"
[dev-dependencies.detone]
version = "1.0.0"
[dev-dependencies.write16]
version = "1.0.0"
features = ["arrayvec"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5.0"