From 50e5df07c0daa67769840f2d2f22e1bcaac8ec5d Mon Sep 17 00:00:00 2001 From: Butterfly Dev Date: Tue, 7 Apr 2026 04:33:56 +0000 Subject: [PATCH] =?UTF-8?q?agent:=20create=20Cargo.toml=20=E2=80=94=20scra?= =?UTF-8?q?p,=20enigo,=20tokio-tungstenite,=20image,=20base64,=20clap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/Cargo.toml | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 agent/Cargo.toml diff --git a/agent/Cargo.toml b/agent/Cargo.toml new file mode 100644 index 0000000..db8b2f8 --- /dev/null +++ b/agent/Cargo.toml @@ -0,0 +1,49 @@ +[package] +name = "butterfly-agent" +version = "0.1.0" +edition = "2021" +description = "Butterfly Desktop Agent — captures display/audio from a VM and forwards HUD commands (mouse/keyboard)" + +[dependencies] +# Async runtime +tokio = { version = "1", features = ["full"] } + +# WebSocket client +tokio-tungstenite = { version = "0.24", features = ["connect"] } +futures-util = "0.3" + +# Screen capture (cross-platform: DXGI on Windows, X11 on Linux, CG on macOS) +scrap = "0.5" + +# Input simulation (cross-platform mouse/keyboard injection) +enigo = "0.2" + +# Image encoding (BGRA → JPEG) +image = "0.25" + +# Base64 encoding for frame data +base64 = "0.22" + +# Serialization +serde = { version = "1", features = ["derive"] } +serde_json = "1" + +# CLI argument parsing +clap = { version = "4", features = ["derive"] } + +# Logging +log = "0.4" +env_logger = "0.11" + +# UUID for agent identification +uuid = { version = "1", features = ["v4"] } + +# Error handling +anyhow = "1" + +# Audio capture (future use) +# cpal = "0.15" + +[profile.release] +opt-level = 3 +lto = true