AnyBot/Cargo.toml

110 lines
5.7 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[package]
name = "anybot"
version = "0.1.0"
license = "Apache-2.0"
edition = "2021"
# Older Rust stops with a clear message instead of odd errors deep in a dependency.
rust-version = "1.95"
[[bin]]
name = "anybot"
path = "src/main.rs"
[dependencies]
zhconv = { version = "0.4", default-features = false, features = ["mediawiki"] }
eframe = "0.37"
# 正式圖表:座標軸、网格、hover 十字準線與數值、框選縮放(和 eframe 同步發版)
egui_plot = "0.38"
ureq = { version = "3", features = ["json"] }
# Web pages that are not UTF-8 (Big5, GBK, Shift_JIS…), read as what they say they are.
encoding_rs = "0.8"
# 長連線 to the account server (WebSocket over the same TLS ureq uses), and compressing what goes over it.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12", "logging"] }
# Which certificates the account server may show: the public ones (built in), plus the ones this
# computer trusts itself, so a server on the local network that signs its own (https://10.0.0.25)
# works once this computer trusts it, the same as for the browser.
webpki-root-certs = "1"
rustls-native-certs = "0.8"
# 區網直連的 HTTPS: this computer's own certificate (lantls).
rcgen = { version = "0.14", default-features = false, features = ["crypto", "ring"] }
# Firefox keeps the names of its newer profiles (「女生」「阿金」…) only in a small SQLite file
# (Profile Groups/*.sqlite); bundled, so no system SQLite is needed.
rusqlite = { version = "0.41", features = ["bundled"] }
flate2 = "1"
# `anybot setup`: the guided setup in a terminal (servers and Linux computers without a window).
crossterm = "0.29"
# 互動終端機: a bot runs a program that needs a real terminal (pi-bolt, Claude Code, vim, a
# y/n prompt) in a pseudo-terminal (ConPTY on Windows) and reads its screen as a person sees it.
portable-pty = "0.9"
# A brain on a server is stopped with a signal (docker stop, systemd, Ctrl-C): it stops what the
# bots started and saves before it goes (Windows' console close too).
ctrlc = { version = "3", features = ["termination"] }
vt100 = "0.16"
unicode-width = "0.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dirs = "7"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp", "tiff", "ico"] }
base64 = "0.22"
# VNC sign-in (the 16-byte challenge) for people watching the bots' computer.
des = "0.8"
chrono = "0.4"
chrono-tz = "0.10"
iana-time-zone = "0.1"
ring = "0.17"
tungstenite = { version = "0.30", default-features = false, features = ["handshake"] }
calamine = "0.38.0"
resvg = "0.49.0"
hayro = "0.9"
zip = { version = "9", default-features = false, features = ["deflate"] }
rodio = { version = "0.23", default-features = false, features = ["playback", "flac", "mp3", "mp4", "vorbis", "wav", "symphonia-aiff", "symphonia-alac", "symphonia-caf"] }
pdf-extract = "0.12"
unicode-normalization = "0.1"
# 記憶的中文斷詞: jieba (its dictionary is Simplified; text is matched in that form via zhconv).
jieba-rs = "0.11"
cpal = "0.18"
mermaid-rs-renderer = { version = "0.3", default-features = false }
pulldown-cmark = { version = "0.13", default-features = false }
# Seeing and using other apps through the OS accessibility APIs (AX on macOS, AT-SPI on Linux,
# UI Automation on Windows): numbered UI elements a bot can act on without screenshots.
# vercel-labs/agent-desktop, Apache-2.0, pinned to a release.
agent-desktop-core = { git = "https://github.com/vercel-labs/agent-desktop", tag = "v1.1.0" }
argon2 = "0.5"
[profile.release]
opt-level = 2
[target.'cfg(not(target_os = "macos"))'.dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
agent-desktop-linux = { git = "https://github.com/vercel-labs/agent-desktop", tag = "v1.1.0" }
x11rb = { version = "0.13", features = ["xtest", "screensaver", "record"] }
# Wayland: wlroots desktops (sway, Hyprland…) through their own protocols; GNOME and KDE through
# the desktop portals (one "allow" dialog, remembered).
wayland-client = "0.31"
# (wl.rs: SO_RCVTIMEO on the compositor socket, so a frozen compositor can't freeze the app)
libc = "0.2"
wayland-protocols = { version = "0.32", features = ["client", "staging", "unstable"] }
wayland-protocols-wlr = { version = "0.3", features = ["client"] }
wayland-protocols-misc = { version = "0.3", features = ["client"] }
memmap2 = "0.9"
ashpd = { version = "0.13", default-features = false, features = ["async-io", "remote_desktop", "screencast", "screenshot"] }
zbus = { version = "5", default-features = false, features = ["async-io", "blocking-api"] }
futures-lite = "2"
async-io = "2"
[target.'cfg(target_os = "macos")'.dependencies]
agent-desktop-macos = { git = "https://github.com/vercel-labs/agent-desktop", tag = "v1.1.0" }
# Typing by pasting (any input method, any language); already in the build through egui.
arboard = { version = "3.7", default-features = false }
# Banners from AnyBot.app itself (its own icon; a click opens that bot), not through osascript
# (Script Editor's icon, and a click opened Script Editor). Already in the build through egui.
objc2 = "0.6"
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSString", "NSBundle", "NSUserNotification", "NSArray", "NSObject"] }
[target.'cfg(target_os = "windows")'.dependencies]
# Copying text from a thread of its own (platform::copy_text); already in the build through egui.
arboard = { version = "3.7", default-features = false }
agent-desktop-windows = { git = "https://github.com/vercel-labs/agent-desktop", tag = "v1.1.0" }
windows = { version = "0.61", features = ["Win32_Foundation", "Win32_Graphics_Gdi", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging", "Win32_System_Threading"] }