Prevent running multiple tele-tui instances with the same account by using advisory file locks (flock). Lock is acquired before raw mode so errors print to normal terminal. Account switching acquires new lock before releasing old. Also log set_tdlib_parameters errors via tracing instead of silently discarding them. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
61 lines
1.5 KiB
TOML
61 lines
1.5 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", "notifications", "images"]
|
|
clipboard = ["dep:arboard"]
|
|
url-open = ["dep:open"]
|
|
notifications = ["dep:notify-rust"]
|
|
images = ["dep:ratatui-image", "dep:image"]
|
|
|
|
[dependencies]
|
|
ratatui = "0.29"
|
|
crossterm = "0.28"
|
|
tdlib-rs = { version = "1.2.0", features = ["download-tdlib"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
async-trait = "0.1"
|
|
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 }
|
|
notify-rust = { version = "4.11", optional = true }
|
|
ratatui-image = { version = "8.1", optional = true, features = ["image-defaults"] }
|
|
image = { version = "0.25", optional = true }
|
|
toml = "0.8"
|
|
dirs = "5.0"
|
|
thiserror = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
base64 = "0.22.1"
|
|
fs2 = "0.4"
|
|
|
|
[dev-dependencies]
|
|
insta = "1.34"
|
|
tokio-test = "0.4"
|
|
criterion = "0.5"
|
|
|
|
[build-dependencies]
|
|
tdlib-rs = { version = "1.2.0", features = ["download-tdlib"] }
|
|
|
|
[[bench]]
|
|
name = "group_messages"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "formatting"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "format_markdown"
|
|
harness = false
|