strs_tools 0.43.0

Tools to manipulate strings.
Documentation
# 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"
name = "strs_tools"
version = "0.43.0"
authors = [
    "Kostiantyn Wandalen <wandalen@obox.systems>",
    "Dmytro Kryvoruchko <dmytro.kr@obox.systems>",
]
build = false
exclude = ["benches/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Tools to manipulate strings.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/strs_tools"
documentation = "https://docs.rs/strs_tools"
readme = "readme.md"
keywords = [
    "fundamental",
    "general-purpose",
]
categories = [
    "algorithms",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/strs_tools"

[package.metadata.docs.rs]
features = ["full"]
all-features = false

[features]
_disabled_compile_time_tests = []
ansi = [
    "enabled",
    "use_alloc",
]
ansi_unicode = [
    "ansi",
    "dep:unicode-segmentation",
]
compile_time_optimizations = ["dep:strs_tools_meta"]
default = [
    "enabled",
    "no_std",
    "use_alloc",
    "string_indentation",
    "string_isolate",
    "string_split",
    "string_parse_number",
    "compile_time_optimizations",
]
enabled = ["strs_tools_meta/enabled"]
full = [
    "enabled",
    "std",
    "string_indentation",
    "string_isolate",
    "string_split",
    "string_parse_number",
    "string_parse_request",
    "simd",
    "compile_time_optimizations",
    "specialized_algorithms",
    "_disabled_compile_time_tests",
]
indentation = ["string_indentation"]
isolate = ["string_isolate"]
no_std = []
parse_number = ["string_parse_number"]
parse_request = ["string_parse_request"]
simd = [
    "std",
    "dep:memchr",
    "memchr/std",
    "dep:aho-corasick",
    "aho-corasick/std",
    "aho-corasick/perf-literal",
    "dep:bytecount",
    "dep:lazy_static",
]
specialized_algorithms = ["string_split"]
split = ["string_split"]
std = []
string_indentation = ["enabled"]
string_isolate = ["enabled"]
string_parse = ["string_parse_request"]
string_parse_number = [
    "dep:lexical",
    "enabled",
]
string_parse_request = [
    "string_split",
    "string_isolate",
    "enabled",
]
string_split = ["enabled"]
use_alloc = ["no_std"]

[lib]
name = "strs_tools"
path = "src/lib.rs"

[[bin]]
name = "simd_test"
path = "src/bin/simd_test.rs"
required-features = ["simd"]

[[example]]
name = "001_basic_usage"
path = "examples/001_basic_usage.rs"

[[example]]
name = "002_advanced_splitting"
path = "examples/002_advanced_splitting.rs"

[[example]]
name = "003_text_indentation"
path = "examples/003_text_indentation.rs"

[[example]]
name = "006_number_parsing"
path = "examples/006_number_parsing.rs"

[[example]]
name = "008_zero_copy_optimization"
path = "examples/008_zero_copy_optimization.rs"

[[example]]
name = "009_compile_time_pattern_optimization"
path = "examples/009_compile_time_pattern_optimization.rs"

[[example]]
name = "debug_parser_manual"
path = "examples/debug_parser_manual.rs"

[[example]]
name = "parser_integration_benchmark"
path = "examples/parser_integration_benchmark.rs"

[[example]]
name = "parser_manual_testing"
path = "examples/parser_manual_testing.rs"

[[example]]
name = "simple_compile_time_test"
path = "examples/simple_compile_time_test.rs"

[[test]]
name = "ansi_truncate_tests"
path = "tests/ansi_truncate_tests.rs"

[[test]]
name = "debug_hang_split_issue"
path = "tests/debug_hang_split_issue.rs"

[[test]]
name = "debug_split_issue"
path = "tests/debug_split_issue.rs"

[[test]]
name = "issue_001_mre"
path = "tests/issue_001_mre.rs"

[[test]]
name = "issue_002_example_feature_guards"
path = "tests/issue_002_example_feature_guards.rs"

[[test]]
name = "namespace_verification_test"
path = "tests/namespace_verification_test.rs"

[[test]]
name = "parser_integration_comprehensive_test"
path = "tests/parser_integration_comprehensive_test.rs"

[[test]]
name = "smoke_test"
path = "tests/smoke_test.rs"

[[test]]
name = "strs_tools_tests"
path = "tests/strs_tools_tests.rs"

[dependencies.aho-corasick]
version = "1.1"
optional = true
default-features = false

[dependencies.bytecount]
version = "0.6"
optional = true

[dependencies.component_model_types]
version = "~0.21.0"
features = ["enabled"]
default-features = false

[dependencies.lazy_static]
version = "1.4"
optional = true

[dependencies.lexical]
version = "7.0.4"
optional = true

[dependencies.memchr]
version = "2.7"
optional = true
default-features = false

[dependencies.strs_tools_meta]
version = "~0.16.0"
optional = true
default-features = false

[dependencies.unicode-segmentation]
version = "1.10"
optional = true

[dependencies.unicode-width]
version = "0.1"

[dev-dependencies.benchkit]
version = "~0.16.0"

[dev-dependencies.ctor]
version = "0.2"

[dev-dependencies.test_tools]
version = "~0.16.0"
features = ["full"]

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
struct_excessive_bools = "allow"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout"))']