subx-core 1.0.0

Core subtitle processing library for SubX: matching, format conversion, synchronization, and AI service integrations.
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"
name = "subx-core"
version = "1.0.0"
authors = ["Jim Chen <Jim@ChenJ.im>"]
build = false
exclude = [
    "assets/",
    ".github/",
    "tests/",
    "target/",
    "*.mp4",
    "*.mp3",
    "*.mov",
    "*.avi",
    "*.mkv",
    "benches/",
    "**/*.log",
    "**/*.tmp",
    "**/.DS_Store",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core subtitle processing library for SubX: matching, format conversion, synchronization, and AI service integrations."
homepage = "https://github.com/jim60105/subx-core"
readme = "README.md"
keywords = [
    "subtitle",
    "library",
    "ai",
    "video",
]
categories = [
    "multimedia",
    "text-processing",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/jim60105/subx-core"

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

[features]
archive-rar = ["dep:unrar"]
default = []
slow-tests = []
test-support = [
    "dep:wiremock",
    "dep:hound",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.audioadapter-buffers]
version = "3"

[dependencies.config]
version = "0.15"

[dependencies.dirs]
version = "6.0"

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flate2]
version = "1"

[dependencies.futures]
version = "0.3"

[dependencies.hound]
version = "3.5"
optional = true

[dependencies.log]
version = "0.4"
features = ["std"]

[dependencies.num_cpus]
version = "1.0"

[dependencies.regex]
version = "1.0"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "rustls",
]

[dependencies.rubato]
version = "2.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sevenz-rust2]
version = "0.22.2"

[dependencies.symphonia]
version = "0.5"
features = [
    "isomp4",
    "mkv",
    "ogg",
    "wav",
    "aac",
    "flac",
    "mp3",
    "pcm",
    "vorbis",
]
default-features = false

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = [
    "rt",
    "sync",
    "time",
    "fs",
    "macros",
]

[dependencies.toml]
version = "1"

[dependencies.unrar]
version = "0.5"
optional = true

[dependencies.url]
version = "2"

[dependencies.uuid]
version = "1.3"
features = ["v7"]

[dependencies.voice_activity_detector]
version = "0.2.1"
features = ["async"]

[dependencies.walkdir]
version = "2.3"

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

[dependencies.zip]
version = "8"

[dev-dependencies.criterion]
version = "0.6.0"
features = ["html_reports"]

[dev-dependencies.hound]
version = "3.5"

[dev-dependencies.mockall]
version = "0.13"

[dev-dependencies.pretty_assertions]
version = "1.4"

[dev-dependencies.tokio]
version = "1.0"
features = ["rt-multi-thread"]

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
doc_markdown = "allow"
missing_docs_in_private_items = "allow"

[lints.rust]
missing_docs = "allow"

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
invalid_rust_codeblocks = "warn"
private_doc_tests = "warn"