subtitler 2.2.0

Parse, convert, validate, edit, and generate subtitles in 13 formats (SRT, VTT, ASS/SSA, MicroDVD, SubViewer, TTML, SBV, LRC, SAMI, MPL2, SCC, EBU STL). Full CLI included.
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 = "2024"
rust-version = "1.85"
name = "subtitler"
version = "2.2.0"
authors = ["siwilizhao <siwilizhao@gmail.com>"]
build = false
include = [
    "Cargo.toml",
    "LICENSE",
    "README.md",
    "CHANGELOG.md",
    "MIGRATION.md",
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "benches/**/*",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parse, convert, validate, edit, and generate subtitles in 13 formats (SRT, VTT, ASS/SSA, MicroDVD, SubViewer, TTML, SBV, LRC, SAMI, MPL2, SCC, EBU STL). Full CLI included."
documentation = "https://docs.rs/subtitler"
readme = "README.md"
keywords = [
    "subtitle",
    "srt",
    "vtt",
    "ass",
    "parser",
]
categories = [
    "text-processing",
    "multimedia",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/subtitle-rs/subtitler"

[features]
ass = []
default = [
    "srt",
    "vtt",
    "ass",
    "ssa",
    "microdvd",
    "subviewer",
    "ttml",
    "sbv",
    "lrc",
    "sami",
    "mpl2",
    "scc",
    "ebu_stl",
    "http",
]
ebu_stl = []
http = ["reqwest"]
lrc = []
microdvd = []
mpl2 = []
sami = []
sbv = []
scc = []
srt = []
ssa = []
subviewer = []
ttml = ["quick-xml"]
vtt = []
wasm = []

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

[[bin]]
name = "subtitler"
path = "src/main.rs"

[[example]]
name = "batch-process"
path = "examples/translate-subtitle.rs"

[[example]]
name = "convert-all-formats"
path = "examples/format-convert-all.rs"

[[example]]
name = "create-mpl2-file"
path = "examples/create-mpl2-file.rs"

[[example]]
name = "create-sami-file"
path = "examples/create-sami-file.rs"

[[example]]
name = "create-srt-file"
path = "examples/create-srt-file.rs"

[[example]]
name = "create-vtt-file"
path = "examples/create-vtt-file.rs"

[[example]]
name = "detect-and-validate"
path = "examples/validate-subtitle.rs"

[[example]]
name = "edit-operations"
path = "examples/edit-operations.rs"

[[example]]
name = "format-convert"
path = "examples/format-convert.rs"

[[example]]
name = "frame-conversion"
path = "examples/frame-conversion.rs"

[[example]]
name = "normalize-text"
path = "examples/normalize-text.rs"

[[example]]
name = "parse-ass-content"
path = "examples/parse-ass-content.rs"

[[example]]
name = "parse-mpl2-content"
path = "examples/parse-mpl2-content.rs"

[[example]]
name = "parse-sami-content"
path = "examples/parse-sami-content.rs"

[[example]]
name = "parse-srt-content"
path = "examples/parse-srt-content.rs"

[[example]]
name = "parse-srt-file"
path = "examples/parse-srt-file.rs"

[[example]]
name = "parse-srt-http"
path = "examples/parse-srt-http.rs"
required-features = ["http"]

[[example]]
name = "parse-ttml-lrc"
path = "examples/ttml-lyrics-tutorial.rs"

[[example]]
name = "parse-vtt-content"
path = "examples/parse-vtt-content.rs"

[[example]]
name = "parse-vtt-file"
path = "examples/parse-vtt-file.rs"

[[example]]
name = "parse-vtt-http"
path = "examples/parse-vtt-http.rs"
required-features = ["http"]

[[example]]
name = "quality-report"
path = "examples/quality-report.rs"

[[example]]
name = "stream-parse"
path = "examples/stream-parse.rs"

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "subtitler_benchmark"
path = "benches/subtitler_benchmark.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.bitflags]
version = "2"
features = ["serde"]

[dependencies.chardetng]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.encoding_rs]
version = "0.8"

[dependencies.quick-xml]
version = "0.41"
optional = true

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = ["rustls"]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.smallvec]
version = "1"
features = [
    "write",
    "const_new",
    "serde",
]

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.criterion]
version = "0.8"

[dev-dependencies.proptest]
version = "1.5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "rt",
    "macros",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true