[package] name = "ass-renderer" version = "0.1.0" edition = "2021" description = "High-performance ASS subtitle renderer" license = "MIT OR Apache-2.0" [dependencies] ass-core = { path = "../ass-core" } # Text shaping and rendering rustybuzz = "0.11" tiny-skia = "0.11" fontdb = "0.16" ttf-parser = "0.20" # Parallelization rayon = { version = "1.10", optional = true } # Safe pixel slice casting bytemuck = { version = "1.14", features = ["derive"] } # Thread safety abstraction trait-variant = "0.1" # Logging log = "0.4" spin = "0.10" # Utilities smallvec = "1.14" stackblur-iter = { version = "0.2", default-features = false } zeno = { version = "0.3", default-features = false, features = ["eval", "libm"] } imgref = "1.9" thiserror = "1.0" ahash = "0.8" bytes = { version = "1", default-features = false } bumpalo = { version = "3.16", features = ["collections"] } # Serialization serde = { version = "1.0", features = ["derive"], optional = true } serde_json = { version = "1.0", optional = true } # Debug and visualization image = { version = "0.24", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] mini-moka-wasm = { git = "https://tangled.org/nonbinary.computer/jacquard", branch = "main"} # WASM support [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.3", features = ["wasm_js"] } mini-moka-wasm = { git = "https://tangled.org/nonbinary.computer/jacquard", branch = "main", features = ["js"] } [dev-dependencies] pretty_assertions = "1.4" [features] default = ["std", "analysis-integration", "simd", "image", "serde"] minimal = ["analysis-integration"] full = ["std", "analysis-integration", "simd", "image", "serde"] analysis-integration = ["ass-core/analysis"] backend-metrics = [] simd = ["ass-core/simd", "tiny-skia/simd"] serde = ["dep:serde", "dep:serde_json", "ass-core/serde"] image = ["dep:image"] std = ["ass-core/std"] unicode-wrap = ["ass-core/unicode-wrap"] benches = [] docs = ["full", "unicode-wrap", "benches"]