[package]
edition = "2024"
name = "ttml_processor"
version = "0.3.3"
authors = ["apoint123 <vpnzaph@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for parsing and generating TTML lyrics files, specifically designed for Apple Music and AMLL formats."
homepage = "https://github.com/apoint123/ttml-processor-rs"
readme = "README.md"
keywords = [
"ttml",
"lyrics",
"parser",
"generator",
"xml",
]
categories = [
"multimedia::audio",
"parsing",
"text-processing",
]
license = "MIT"
repository = "https://github.com/apoint123/ttml-processor-rs"
[lib]
name = "ttml_processor"
path = "src/lib.rs"
[[example]]
name = "error"
path = "examples/error.rs"
[[example]]
name = "generate"
path = "examples/generate.rs"
[[example]]
name = "parse"
path = "examples/parse.rs"
[[example]]
name = "write_json"
path = "examples/write_json.rs"
[[test]]
name = "error_test"
path = "tests/error_test.rs"
[[test]]
name = "generator_snapshot_tests"
path = "tests/generator_snapshot_tests.rs"
[[test]]
name = "parser_snapshot_tests"
path = "tests/parser_snapshot_tests.rs"
[[bench]]
name = "ttml_parser_benchmark"
path = "benches/ttml_parser_benchmark.rs"
harness = false
[dependencies.indexmap]
version = "2.14"
features = ["serde"]
[dependencies.quick-xml]
version = "0.39"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_with]
version = "3.18"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.insta]
version = "1"
features = ["glob"]
[dev-dependencies.miette]
version = "7.6.0"
features = ["fancy"]
[dev-dependencies.mimalloc]
version = "0.1"
[lints.clippy]
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.bench]
debug = 2
[profile.dev]
opt-level = 0
codegen-units = 256
debug = 0
panic = "abort"
incremental = true
[profile.dev.build-override]
opt-level = 3