Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

5.9 KB
Raw Blame
[package]
name = "coucou"
description = "Coucou for Windows and Linux — Mochi lives at the top of your screen"
authors = ["Louis Raille"]
version.workspace = true
edition.workspace = true
license.workspace = true

[lib]
name = "coucou_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
tauri-build = { version = "2", features = [] }

[dependencies]
tauri = { version = "2", features = ["tray-icon"] }
tauri-plugin-single-instance = "2"
tauri-plugin-autostart = "2"
tauri-plugin-global-shortcut = "2"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
tokio = { version = "1", features = ["net", "io-util", "sync", "time", "rt", "macros", "process"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Phone link (phone_link/): a TLS server for the Android app, off unless the user
# turns it on. Every crate here is justified in docs/ANDROID_LINK.md.
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
ring = "0.17"
rcgen = { version = "0.13", default-features = false, features = ["ring"] }
qrcode = { version = "0.14", default-features = false, features = ["svg"] }
# The phone finds this computer by itself when its address changes: it is announced on the local network
# (mDNS / DNS-SD, `_coucou._tcp`) only while the phone link is on (phone_link/discovery.rs). Pure Rust,
# Apache-2.0 OR MIT, no async runtime or logger (default features off); it adds five small crates
# (mdns-sd, flume, if-addrs, socket-pktinfo, spin). See docs/ANDROID_LINK.md.
mdns-sd = { version = "0.21", default-features = false }
# Phone link through a relay (phone_link/relay_client.rs; docs/RELAY_LINK.md): the computer opens an outbound
# WebSocket to the user's own relay, only while "Away from home Wi-Fi" is on. tokio-tungstenite is the WebSocket
# framing only (no TLS feature: the TLS is the tokio-rustls/ring already here, with the web roots reqwest already
# pulls in), so no second crypto provider is added. MIT.
tokio-tungstenite = { version = "0.26", default-features = false, features = ["handshake"] }
webpki-roots = "1"
# Stream/Sink traits for the WebSocket (already in the tree through tokio-tungstenite and tauri).
futures-util = { version = "0.3", default-features = false, features = ["sink"] }
# Flow dictation and the Notetaker (flow/, notes/, speech/). Speech to text runs
# on this computer: sherpa-onnx (Apache-2.0) with NVIDIA's Parakeet, linked
# statically (onnxruntime included), the models downloaded on the user's click.
sherpa-onnx = { version = "1.13.8", default-features = false, features = ["static"] }
# The microphone, and the computer's own sound for the Notetaker (WASAPI
# loopback on Windows, a PulseAudio/PipeWire monitor on Linux). Apache-2.0.
cpal = "0.18"
# WhatsApp's "Install WhatsApp" takes GOWA's binary out of the zip GOWA publishes (whatsapp/archive.rs):
# the raw DEFLATE decoder only, already in the tree through png (the same 0.8.9), so nothing new is
# downloaded or compiled. MIT/Zlib/Apache-2.0.
miniz_oxide = "0.8"
# The chat's mail merge cuts a PDF into one page per recipient and reads each page's text
# (mail/pdf.rs), as the Mac does with PDFKit; Windows has no PDF library of its own. MIT, pure
# Rust, default features (clock, rayon) off.
lopdf = { version = "0.46", default-features = false }

[target.'cfg(windows)'.dependencies]
keyring = { version = "3", features = ["windows-native"] }
# The island's file drop reads paths straight from WebView2 (webview_drop.rs).
# Same versions as wry, so nothing new is compiled.
webview2-com = "0.39"
wv2_core = { package = "windows-core", version = "0.62" }
windows = { version = "0.61", features = [
  # The Spotify pill: the system media controls Spotify publishes to.
  "Foundation",
  "Media",
  "Media_Control",
  "Storage_Streams",
  "Win32_Foundation",
  # The Spotify pill's volume: Spotify's session in the Windows mixer.
  "Win32_Media_Audio",
  "Win32_System_Com",
  "Win32_System_Com_StructuredStorage",
  "Win32_System_Variant",
  "Win32_Security",
  "Win32_Security_Authorization",
  "Win32_System_Com",
  # "Open terminal": the relay's process tree leads to the session's window.
  "Win32_System_Diagnostics_ToolHelp",
  "Win32_System_Ole",
  "Win32_System_Pipes",
  "Win32_System_Registry",
  "Win32_System_SystemInformation",
  "Win32_System_Threading",
  "Win32_UI_Input_KeyboardAndMouse",
  "Win32_UI_Shell",
  "Win32_UI_WindowsAndMessaging",
  # Flow dictation's keyboard hook.
  "Win32_System_LibraryLoader",
] }
# The clipboard for Flow dictation, kept out of the clipboard history. MIT/Apache-2.0.
arboard = { version = "3.6", default-features = false }

[target.'cfg(target_os = "linux")'.dependencies]
# Secret Service (GNOME Keyring, KWallet) over D-Bus, encrypted in transit.
keyring = { version = "3", features = ["sync-secret-service", "crypto-rust"] }
libc = "0.2"
# The GTK that Tauri already runs on, to reach its window for layer-shell and
# the input region. libgtk-layer-shell itself is called directly (platform/linux.rs).
gtk = "0.18"
# libdbus, which keyring's Secret Service already links, so nothing new is
# downloaded: Wayland global shortcuts through the XDG GlobalShortcuts portal
# (portal.rs), the Spotify pill over MPRIS (spotify.rs) and "Open terminal"
# through KWin's scripting (platform/linux_focus.rs).
dbus = "0.9.12"
# EWMH on X11 for "Open terminal", already in the tree (global-hotkey).
x11rb = { version = "0.13", default-features = false, features = ["xinput", "xtest"] }
# PulseAudio (or PipeWire's PulseAudio server) for the microphone list and the
# monitor of the speakers, the Notetaker's "computer sound". Pure Rust client.
cpal = { version = "0.18", features = ["pulseaudio"] }
# The clipboard for Flow dictation (X11, and Wayland's data-control protocol).
arboard = { version = "3.6", default-features = false, features = ["wayland-data-control"] }