[package]
edition = "2024"
name = "xutf"
version = "1.2.0"
build = false
exclude = [
"benches/data",
"fuzz",
"scripts",
".github",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Permissive UTF-8/16/32 transcoding, comparison and BOM detection with SIMD ASCII fast paths"
readme = "README.md"
keywords = [
"utf-8",
"utf-16",
"simd",
"unicode",
"transcoding",
]
categories = [
"encoding",
"text-processing",
"no-std",
"internationalization",
]
license = "MIT"
repository = "https://github.com/can1357/xutf"
[lib]
name = "xutf"
path = "src/lib.rs"
bench = false
[[bin]]
name = "asm_fixture"
path = "src/bin/asm_fixture.rs"
[[example]]
name = "prof"
path = "examples/prof.rs"
[[example]]
name = "transcode"
path = "examples/transcode.rs"
[[test]]
name = "graphemes"
path = "tests/graphemes.rs"
[[test]]
name = "normalization"
path = "tests/normalization.rs"
[[test]]
name = "read_chars"
path = "tests/read_chars.rs"
[[test]]
name = "strip_ansi"
path = "tests/strip_ansi.rs"
[[test]]
name = "text"
path = "tests/text.rs"
[[test]]
name = "truncate"
path = "tests/truncate.rs"
[[test]]
name = "width"
path = "tests/width.rs"
[[test]]
name = "width_ansi"
path = "tests/width_ansi.rs"
[[test]]
name = "wrap"
path = "tests/wrap.rs"
[[test]]
name = "xutf"
path = "tests/xutf.rs"
[[bench]]
name = "chars"
path = "benches/chars.rs"
harness = false
[[bench]]
name = "graphemes"
path = "benches/graphemes.rs"
harness = false
[[bench]]
name = "normalize"
path = "benches/normalize.rs"
harness = false
[[bench]]
name = "profile"
path = "benches/profile.rs"
harness = false
[[bench]]
name = "strip_ansi"
path = "benches/strip_ansi.rs"
harness = false
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[[bench]]
name = "truncate"
path = "benches/truncate.rs"
harness = false
[[bench]]
name = "width"
path = "benches/width.rs"
harness = false
[[bench]]
name = "width_ansi"
path = "benches/width_ansi.rs"
harness = false
[[bench]]
name = "wrap"
path = "benches/wrap.rs"
harness = false
[dev-dependencies.divan]
version = "0.1"
[dev-dependencies.encoding_rs]
version = "0.8.35"
[dev-dependencies.rayon]
version = "1.10"
[dev-dependencies.simdutf]
version = "0.7.0"
[dev-dependencies.strip-ansi]
version = "0.1.0"
[dev-dependencies.textwrap]
version = "0.16"
[dev-dependencies.unicode-normalization]
version = "0.1.25"
[dev-dependencies.unicode-segmentation]
version = "1.13"
[dev-dependencies.unicode-width]
version = "0.2"
[dev-dependencies.utf8-chars]
version = "3"
[lints.clippy]
allow_attributes_without_reason = "warn"
borrow_as_ptr = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
enum_glob_use = "allow"
float_cmp = "allow"
inconsistent_struct_constructor = "allow"
inline_always = "allow"
items_after_statements = "allow"
let_underscore_untyped = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
ptr_as_ptr = "allow"
redundant_closure_for_method_calls = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
tabs_in_doc_comments = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
tuple_array_conversions = "allow"
undocumented_unsafe_blocks = "warn"
unreadable_literal = "allow"
unsafe_derive_deserialize = "allow"
verbose_bit_mask = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
mismatched_lifetime_syntaxes = "allow"
[profile.release]
lto = "thin"