fasrt 0.1.0

A blazing fast, zero-copy subtitle parser and writer for SRT and WebVTT in Rust.
# 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 = "fasrt"
version = "0.1.0"
build = "build.rs"
exclude = [
    "tests",
    "fixtures",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A blazing fast, zero-copy subtitle parser and writer for SRT and WebVTT in Rust."
homepage = "https://github.com/Findit-AI/fasrt"
documentation = "https://docs.rs/fasrt"
readme = "README.md"
keywords = [
    "subtitle",
    "srt",
    "webvtt",
    "vtt",
]
categories = [
    "parser-implementations",
    "parsing",
    "multimedia",
    "no-std::no-alloc",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Findit-AI/fasrt"

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

[features]
alloc = ["memchr"]
default = ["std"]
std = [
    "thiserror/std",
    "memchr",
]

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

[[example]]
name = "foo"
path = "examples/foo.rs"

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

[dependencies.derive_more]
version = "2"
features = [
    "display",
    "from",
    "into",
    "is_variant",
    "unwrap",
    "try_unwrap",
]
default-features = false

[dependencies.logos]
version = "0.16"
features = ["export_derive"]
default-features = false

[dependencies.memchr]
version = "2"
optional = true
default-features = false

[dependencies.phf]
version = "0.13"
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

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

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

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

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.phf_codegen]
version = "0.13"

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

[build-dependencies.serde_json]
version = "1"

[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(all_tests)",
    "cfg(tarpaulin)",
]

[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
overflow-checks = false
incremental = false