[package] name = "tglock" version = "2.0.0-beta.2" edition = "2021" rust-version = "1.88" description = "Telegram unblock via local WebSocket tunnel" license = "MIT" autobins = false [features] default = ["gui"] # The desktop GUI. Turning it off drops Tauri, the system WebView and the # frontend bundle from the build, which is what makes headless servers and # machines without a GPU or monitor able to build and run TGLock at all. gui = ["dep:tauri", "dep:tauri-build", "dep:open"] [lib] name = "tglock" path = "src/lib.rs" [[bin]] name = "tglock" path = "src/main.rs" required-features = ["gui"] [[bin]] name = "tglock-cli" path = "src/bin/cli.rs" [dependencies] tauri = { version = "2", features = [], optional = true } open = { version = "5", optional = true } clap = { version = "4", features = ["derive"] } serde = { version = "1", features = ["derive"] } serde_json = "1" tokio = { version = "1", features = [ "rt-multi-thread", "net", "io-util", "time", "macros", "sync", "signal", ] } tokio-tungstenite = { version = "0.24", features = ["native-tls"] } native-tls = "0.2" futures-util = "0.3" aes = "0.8" ctr = "0.9" cipher = "0.4" sha2 = "0.10" rand = "0.8" [build-dependencies] tauri-build = { version = "2", features = [], optional = true }