| 1 |
[package] |
| 2 |
name = "livechat" |
| 3 |
version = "0.1.0" |
| 4 |
edition = "2024" |
| 5 |
license = "MIT" |
| 6 |
|
| 7 |
[features] |
| 8 |
default = [] |
| 9 |
# Axum SSE adapter. The rest of the crate has no framework dependency. |
| 10 |
axum = ["dep:axum", "dep:async-stream", "dep:tokio-stream", "dep:serde_json", "dep:tracing"] |
| 11 |
|
| 12 |
[dependencies] |
| 13 |
async-trait = "0.1" |
| 14 |
dashmap = "6" |
| 15 |
serde = { version = "1", features = ["derive"] } |
| 16 |
thiserror = "2" |
| 17 |
tokio = { version = "1", features = ["sync"] } |
| 18 |
uuid = { version = "1", features = ["v4", "serde"] } |
| 19 |
|
| 20 |
async-stream = { version = "0.3", optional = true } |
| 21 |
axum = { version = "0.8", optional = true } |
| 22 |
serde_json = { version = "1", optional = true } |
| 23 |
tokio-stream = { version = "0.1", features = ["sync"], optional = true } |
| 24 |
tracing = { version = "0.1", optional = true } |
| 25 |
|
| 26 |
[dev-dependencies] |
| 27 |
serde_json = "1" |
| 28 |
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread", "sync", "time"] } |
| 29 |
|
| 30 |
[lints.rust] |
| 31 |
unused = "warn" |
| 32 |
unreachable_pub = "warn" |
| 33 |
|
| 34 |
[lints.clippy] |
| 35 |
pedantic = { level = "warn", priority = -1 } |
| 36 |
# Allow-list tuned from a measured breakdown across server/multithreaded/pter |
| 37 |
# (2026-07-22). These are the high-churn / low-signal pedantic lints; everything |
| 38 |
# else in `pedantic` stays a warning. Keep this block identical across repos. |
| 39 |
module_name_repetitions = "allow" |
| 40 |
# Doc lints. No docs-completeness push is underway. |
| 41 |
missing_errors_doc = "allow" |
| 42 |
missing_panics_doc = "allow" |
| 43 |
doc_markdown = "allow" |
| 44 |
# Numeric casts. Endemic and mostly intentional in size and byte math. |
| 45 |
cast_possible_truncation = "allow" |
| 46 |
cast_sign_loss = "allow" |
| 47 |
cast_precision_loss = "allow" |
| 48 |
cast_possible_wrap = "allow" |
| 49 |
cast_lossless = "allow" |
| 50 |
# Subjective structure and style nags. High churn, low signal. |
| 51 |
must_use_candidate = "allow" |
| 52 |
too_many_lines = "allow" |
| 53 |
struct_excessive_bools = "allow" |
| 54 |
similar_names = "allow" |
| 55 |
items_after_statements = "allow" |
| 56 |
single_match_else = "allow" |
| 57 |
# Frequent false-positives in TUI and router-heavy code. |
| 58 |
match_same_arms = "allow" |
| 59 |
unnecessary_wraps = "allow" |
| 60 |
type_complexity = "allow" |
| 61 |
|