ass-core 0.1.2

High-performance ASS subtitle format parser and analyzer
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"
rust-version = "1.82"
name = "ass-core"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance ASS subtitle format parser and analyzer"
homepage = "https://github.com/wiedymi/ass-rs"
documentation = "https://docs.rs/ass-core"
readme = "README.md"
keywords = [
    "subtitle",
    "ass",
    "ssa",
    "parser",
    "aegisub",
]
categories = [
    "parsing",
    "multimedia",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/wiedymi/ass-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
analysis = []
arena = ["dep:bumpalo"]
benches = ["dep:criterion"]
default = ["full"]
full = [
    "std",
    "analysis",
    "plugins",
    "stream",
    "simd",
    "arena",
    "unicode-wrap",
    "serde",
]
minimal = [
    "nostd",
    "analysis",
    "plugins",
    "stream",
]
nostd = ["dep:hashbrown"]
plugins = []
serde = ["dep:serde"]
simd = ["dep:wide"]
simd-full = ["simd"]
std = ["serde?/std"]
stream = []
unicode-wrap = ["dep:unicode-linebreak"]

[lib]
name = "ass_core"
path = "lib.rs"

[[bin]]
name = "check-perf-regression"
path = "bin/check_perf_regression.rs"
required-features = ["benches"]

[[bin]]
name = "memory-profile"
path = "bin/memory_profile.rs"
required-features = ["benches"]

[[bin]]
name = "validate-bench-results"
path = "bin/validate_bench_results.rs"
required-features = ["benches"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "incremental_benchmarks"
path = "benches/incremental_benchmarks.rs"
harness = false
required-features = ["benches"]

[[bench]]
name = "memory_benchmarks"
path = "benches/memory_benchmarks.rs"
harness = false
required-features = ["benches"]

[[bench]]
name = "parser_benchmarks"
path = "benches/parser_benchmarks.rs"
harness = false
required-features = ["benches"]

[dependencies.ahash]
version = "0.8.11"
features = ["std"]
default-features = false

[dependencies.bitflags]
version = "2.4.1"

[dependencies.bumpalo]
version = "3.14"
optional = true

[dependencies.criterion]
version = "0.5"
features = ["html_reports"]
optional = true

[dependencies.hashbrown]
version = "0.14"
features = ["ahash"]
optional = true

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0.63"

[dependencies.unicode-linebreak]
version = "0.1"
optional = true

[dependencies.wide]
version = "0.7"
optional = true

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy]
all = "deny"
cargo = "warn"
cast_ptr_alignment = "deny"
fn_to_numeric_cast_any = "deny"
inefficient_to_string = "deny"
missing_docs_in_private_items = "warn"
module_name_repetitions = "allow"
negative_feature_names = "allow"
nursery = "warn"
pedantic = "warn"
similar_names = "allow"
string_add = "deny"
string_add_assign = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"

[lints.rust]
unreachable_code = "warn"
unused_imports = "deny"
unused_mut = "deny"
unused_variables = "deny"