[[bench]]
harness = false
name = "parsing"
path = "benches/parsing.rs"
[dependencies.async-trait]
optional = true
version = "0.1"
[dependencies.chrono]
features = ["serde"]
version = "0.4"
[dependencies.csv]
optional = true
version = "1.3"
[dependencies.regex]
optional = true
version = "1.11"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
optional = true
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
features = ["fs", "io-util", "rt", "macros"]
optional = true
version = "1"
[dependencies.tokio-stream]
optional = true
version = "0.1"
[dev-dependencies.cargo-husky]
features = ["precommit-hook", "run-cargo-clippy", "run-cargo-test"]
version = "1"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[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"
[[example]]
name = "library_usage"
path = "examples/library_usage.rs"
[[example]]
name = "rag_integration"
path = "examples/rag_integration.rs"
[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"
[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
[package]
authors = ["Mukhammedali Berektassuly <mukhammedali@berektassuly.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["parsing", "text-processing"]
description = "Prepare chat data for RAG / LLM ingestion. Supports Telegram, WhatsApp, Instagram, Discord."
edition = "2024"
homepage = "https://berektassuly.com"
keywords = ["telegram", "whatsapp", "instagram", "discord", "llm"]
license = "MIT"
name = "chatpack"
readme = "README.md"
repository = "https://github.com/berektassuly/chatpack"
version = "0.5.0"
[profile.bench]
lto = "thin"
opt-level = 3
[profile.release]
lto = true
opt-level = 3
strip = true
[[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"