Added 9 new unit tests for utils/formatting.rs functions: - format_date: 4 tests (today, yesterday, old, epoch) - format_was_online: 5 tests (just now, minutes/hours/days ago, very old) Created 3 performance benchmark files using criterion: - benches/group_messages.rs - message grouping benchmarks - benches/formatting.rs - timestamp/date formatting benchmarks - benches/format_markdown.rs - markdown parsing benchmarks Updated documentation: - CONTEXT.md: added Phase 4.1 (Utils) and 4.2 (Benchmarks) completion - Total coverage: 188 tests + 8 benchmarks = 196 tests (100%) All 565 tests passing with 100% success rate.
53 lines
1.2 KiB
TOML
53 lines
1.2 KiB
TOML
[package]
|
|
name = "tele-tui"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Your Name <your.email@example.com>"]
|
|
description = "Terminal UI for Telegram with Vim-style navigation"
|
|
license = "MIT"
|
|
repository = "https://github.com/your-username/tele-tui"
|
|
keywords = ["telegram", "tui", "terminal", "cli"]
|
|
categories = ["command-line-utilities"]
|
|
|
|
[features]
|
|
default = ["clipboard", "url-open"]
|
|
clipboard = ["dep:arboard"]
|
|
url-open = ["dep:open"]
|
|
|
|
[dependencies]
|
|
ratatui = "0.29"
|
|
crossterm = "0.28"
|
|
tdlib-rs = { version = "1.1", features = ["download-tdlib"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
dotenvy = "0.15"
|
|
chrono = "0.4"
|
|
open = { version = "5.0", optional = true }
|
|
arboard = { version = "3.4", optional = true }
|
|
toml = "0.8"
|
|
dirs = "5.0"
|
|
thiserror = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[dev-dependencies]
|
|
insta = "1.34"
|
|
tokio-test = "0.4"
|
|
criterion = "0.5"
|
|
|
|
[build-dependencies]
|
|
tdlib-rs = { version = "1.1", features = ["download-tdlib"] }
|
|
|
|
[[bench]]
|
|
name = "group_messages"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "formatting"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "format_markdown"
|
|
harness = false
|