Skip to content

Lightweight native Discord client for Windows, Linux and macOS, written in Rust. No Electron, no browser engine.

4.4 KB
Raw Blame
[package]
name = "rustcord"
description = "RustCord: a native Discord client written in Rust, with the Rencord mod system"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
discord = { path = "../../crates/discord" }
rencord = { path = "../../crates/rencord" }
voice = { path = "../../crates/voice" }
chrono = "0.4"
directories = "5"
eframe = "0.29"
egui_extras = { version = "0.29", features = ["image", "file", "gif", "svg", "datepicker"] }
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp"] }
# Pasting pictures and files into the message box (egui only pastes text).
arboard = { version = "3.7", default-features = false, features = ["image-data"] }
env_logger = "0.11"
# READY snapshot cache (zlib) and memory-mapped system fonts.
flate2 = "1"
memmap2 = "0.9"
# The saved login: Windows Credential Manager, the macOS Keychain, and on Linux
# the desktop's keyring (Secret Service: GNOME Keyring, KWallet), which survives
# a restart, unlike the kernel keyring alone.
keyring = { version = "3", features = ["windows-native", "apple-native", "linux-native-sync-persistent", "crypto-rust"] }
log = "0.4"
mimalloc = { version = "0.1", default-features = false }
# mi_collect / statistics (handing freed memory back to Windows when idle).
libmimalloc-sys = { version = "0.1", features = ["extended"] }
reqwest = "0.12"
rand = "0.8"
base64 = "0.22"
# Discord's blurred picture previews (ThumbHash), shown while pictures load.
thumbhash = "0.1"
# Video frames go into egui textures as a plain copy (Color32 is Pod).
bytemuck = "1"
rfd = "0.15"
url = "2"
wry = "=0.57.0"
rodio = { version = "0.23", default-features = false, features = ["playback", "symphonia-all"] }
serde = "1"
serde_json = "1"
# Lottie stickers drawn into frames (src/lottie.rs); already in the build through resvg.
tiny-skia = "0.11"
# RustCord user registry keys (hashed Discord IDs, see src/registry.rs).
sha2 = "0.10"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "sync", "net", "io-util"] }

[features]
# Developer aid: track who owns the heap (see src/memprof.rs).
memprof = []
# Developer hooks (RUSTCORD_DEV_VIEW, RUSTCORD_DEV_INPUT, RUSTCORD_DUMP_API…) in a
# release build; debug builds always have them (see src/diagnostics.rs).
dev-hooks = []

[build-dependencies]
embed-resource = "2"

[target.'cfg(target_os = "linux")'.dependencies]
# The notification-area icon (StatusNotifierItem over D-Bus). Pure Rust: no
# extra C library to install, unlike the AppIndicator bindings.
ksni = { version = "0.3", features = ["blocking"] }
# The embedded web pages are WebKitGTK views there: GTK is started and pumped
# by src/linux.rs. The version wry 0.57 uses.
gtk = "0.18"
# The window's X connection and winit's Xlib error hook (src/linux.rs): the
# versions eframe 0.29 uses.
winit = { version = "0.30", default-features = false, features = ["x11", "rwh_06"] }
raw-window-handle = "0.6"
# glibc's malloc_trim (src/diagnostics.rs), at the version already in the build.
libc = "0.2"

[target.'cfg(target_os = "macos")'.dependencies]
# The Process Viewer's memory and processor figures (src/diagnostics.rs).
libc = "0.2"
# The Dock icon's unread badge (src/tray.rs), at the versions wry already uses.
objc2 = "0.6"
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSString"] }
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSApplication", "NSDockTile", "NSResponder"] }

[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_System_Diagnostics_Debug", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_UI_WindowsAndMessaging", "Win32_UI_Shell", "Win32_Graphics_Gdi", "Win32_Graphics_Dwm", "Win32_UI_Input_KeyboardAndMouse", "Win32_System_Registry",
    # Sealing the on-disk caches (DPAPI, see src/cache.rs).
    "Win32_Security", "Win32_Security_Cryptography"] }
# Video decoding (Media Foundation), the spell checker and COM helpers.
windows = { version = "0.58", features = [
    "Foundation_Numerics",
    "Win32_Foundation",
    # Windows' spell checker (the message box's spell checking).
    "Win32_Globalization",
    "Win32_System_Com",
    "Win32_System_Com_StructuredStorage",
    "Win32_Graphics_Imaging",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Media_MediaFoundation",
    "Win32_UI_Shell",
    # The taskbar button's unread badge (ITaskbarList3::SetOverlayIcon).
    "Win32_UI_WindowsAndMessaging",
] }