[package]
name = "tg-cli"
version = "0.2.1"
edition = "2024"
description = "A \"unix-like\" utility for sending yourself Telegram messages from the terminal "
readme = "README.md"
repository = "https://github.com/Garfield1002/tg-rs"
license = "Unlicense"
[lib]
path = "src/lib.rs"
[[bin]]
name = "tg"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = ["cli", "non-blocking"]
cli = ["dep:clap", "dep:pretty_env_logger"]
non-blocking = []
[dependencies]
teloxide = { version = "0.17.0", features = ["macros"] }
tokio = { version = "1.8", features = ["rt-multi-thread", "macros", "sync"] }
serde = { version = "1", features = ["derive"] }
toml = "0.8"
keyring = { version = "3", features = ["sync-secret-service", "crypto-rust"] }
clap = { version = "4", features = ["derive"], optional = true }
pretty_env_logger = { version = "0.5", optional = true }