chatpack 0.6.0

Prepare chat data for RAG / LLM ingestion. Supports Telegram, WhatsApp, Instagram, Discord.
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 = "chatpack"
version = "0.6.0"
authors = ["Mukhammedali Berektassuly <mukhammedali@berektassuly.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Prepare chat data for RAG / LLM ingestion. Supports Telegram, WhatsApp, Instagram, Discord."
homepage = "https://berektassuly.com"
readme = "README.md"
keywords = [
    "telegram",
    "whatsapp",
    "instagram",
    "discord",
    "llm",
]
categories = [
    "parsing",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/berektassuly/chatpack"

[features]
async = [
    "dep:tokio",
    "dep:tokio-stream",
    "dep:async-trait",
]
csv-output = ["dep:csv"]
default = ["full"]
discord = [
    "dep:serde_json",
    "dep:regex",
    "dep:csv",
]
full = [
    "telegram",
    "whatsapp",
    "instagram",
    "discord",
    "csv-output",
    "json-output",
    "streaming",
]
instagram = ["dep:serde_json"]
json-output = ["dep:serde_json"]
streaming = []
telegram = ["dep:serde_json"]
whatsapp = ["dep:regex"]

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

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

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

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.csv]
version = "1.3"
optional = true

[dependencies.regex]
version = "1.11"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "rt",
    "macros",
]
optional = true

[dependencies.tokio-stream]
version = "0.1"
optional = true

[dev-dependencies.cargo-husky]
version = "1"
features = [
    "precommit-hook",
    "run-cargo-clippy",
    "run-cargo-test",
]

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

[dev-dependencies.csv]
version = "1.3"

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

[dev-dependencies.regex]
version = "1.11"

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

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

[lints.clippy]
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
collapsible_if = "allow"
doc_markdown = "allow"
format_push_string = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant_closure_for_method_calls = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unicode_not_nfc = "allow"
uninlined_format_args = "allow"
unnecessary_join = "allow"
unreadable_literal = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[profile.bench]
opt-level = 3
lto = "thin"

[profile.release]
opt-level = 3
lto = true
strip = true