Lightweight native Discord client for Windows, Linux and macOS, written in Rust. No Electron, no browser engine.
Rust desktop-appdiscorddiscord-clienteguielectron-alternativelightweightlinuxmacosnative-apprustwindows
RustCord 0.4.37: experimental Linux build
VRonGitHub00d18e96cc92
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.ymlindex b34c30b..01eb2a6 100644--- a/.github/workflows/linux.yml+++ b/.github/workflows/linux.yml@@ -22,7 +22,7 @@ jobs:permissions:contents: writesteps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v7- name: Install the system librariesrun: |@@ -46,7 +46,7 @@ jobs:- name: Packagerun: sh packaging/linux/package.sh- - uses: actions/upload-artifact@v4+ - uses: actions/upload-artifact@v7with:name: rustcord-linux-x86_64path: |diff --git a/Cargo.lock b/Cargo.lockindex 5126b28..747914d 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1572,7 +1572,7 @@ dependencies = [[[package]]name = "discord"-version = "0.4.36"+version = "0.4.37"dependencies = ["anyhow","base64 0.22.1",@@ -5309,7 +5309,7 @@ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"[[package]]name = "rencord"-version = "0.4.36"+version = "0.4.37"dependencies = ["discord","log",@@ -5488,7 +5488,7 @@ dependencies = [[[package]]name = "rustcord"-version = "0.4.36"+version = "0.4.37"dependencies = ["arboard","base64 0.22.1",@@ -5528,7 +5528,7 @@ dependencies = [[[package]]name = "rustcord-setup"-version = "0.4.36"+version = "0.4.37"dependencies = ["embed-resource","flate2",diff --git a/Cargo.toml b/Cargo.tomlindex b7fe31b..bd0e481 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -3,7 +3,7 @@ resolver = "2"members = ["crates/discord", "crates/rencord", "crates/voice", "apps/rustcord", "apps/setup"][workspace.package]-version = "0.4.36"+version = "0.4.37"edition = "2021"license = "PolyForm-Noncommercial-1.0.0"diff --git a/README.md b/README.mdindex 120b51f..2d55950 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@# RustCord-**A lightweight, native Discord client for Windows, written in Rust.**<br>+**A lightweight, native Discord client for Windows and Linux, written in Rust.**<br>No Electron, no browser engine: one small program that looks and feels like Discord.<a href="#downloads">π¦ Downloads</a> β’@@ -22,7 +22,7 @@ No Electron, no browser engine: one small program that looks and feels like Disc[](https://github.com/VRonGitHub/RustCord/stargazers)-+-0078d6)[](LICENSE)<img src="docs/screenshots/chat.png" width="900" alt="RustCord showing a server's chat, channel list and member list">@@ -36,14 +36,28 @@ No Electron, no browser engine: one small program that looks and feels like Disc<a id="downloads"></a>## π¦ Downloads-Grab **`RustCordSetup-<version>.exe`** from the [Releases](https://github.com/VRonGitHub/RustCord/releases)-page and run it. Windows 10 (1903 or newer) or Windows 11; no administrator rights needed.+Everything is on the [Releases](https://github.com/VRonGitHub/RustCord/releases) page.++**Windows:** run **`RustCordSetup-<version>.exe`**. Windows 10 (1903 or newer) or Windows 11; no+administrator rights needed.- The installer isn't code-signed, so SmartScreen may warn the first time: **More info β Run anyway**.-- Each release has a `.sha256` file. Check your download matches it with+- Check your download against its `.sha256` file with`(Get-FileHash -Algorithm SHA256 .\RustCordSetup-<version>.exe).Hash`.- Updating is running a newer installer: your settings and login stay.+**Linux (experimental):** download **`RustCord-<version>-linux-x86_64.tar.gz`**, unpack it and run+`./install.sh` (for your account only, no root). It adds RustCord to your app menu;+`./install.sh --uninstall` removes it again.++- Needs a 64-bit distribution from 2022 or newer (Ubuntu 22.04+, Debian 12+, Fedora 36+, Archβ¦)+ with WebKitGTK 4.1 for the login page: `sudo apt install libwebkit2gtk-4.1-0` on Ubuntu/Debian,+ `sudo dnf install webkit2gtk4.1` on Fedora, `sudo pacman -S webkit2gtk-4.1` on Arch.+- Chat, voice calls and everything else work; Go Live screen sharing and the camera are+ Windows-only for now. On a Wayland desktop RustCord runs through XWayland.+- New on Linux, so please [report problems](https://github.com/VRonGitHub/RustCord/issues).+ Check your download with `sha256sum -c RustCord-<version>-linux-x86_64.tar.gz.sha256`.+<a id="highlights"></a>## β‘ Highlights@@ -52,7 +66,8 @@ page and run it. Windows 10 (1903 or newer) or Windows 11; no administrator righ- π¨ **Looks like Discord:** Discord's layout, icons, font, colours, Nitro gradient themes and menus, rebuilt natively.- ποΈ **Voice, video and Go Live:** calls with noise suppression, camera, screen sharing up to 60 fps, soundboard.- π§© **Rencord:** a built-in mod system with ports of popular Vencord plugins, plus Vencord/BetterDiscord themes.-- π **Private:** no telemetry, no tracking calls, your token stays in Windows Credential Manager.+- π **Private:** no telemetry, no tracking calls, your token stays in your system's credential store.+- π§ **Windows and Linux:** a Windows installer, and an experimental Linux build.<a id="showcase"></a>## β¨ Showcase@@ -121,6 +136,23 @@ in `target\release\rustcord.exe`, which you can run directly from then on.**3. Optional: build the installer.** `build-installer.cmd` builds everything in release mode andwrites `dist\RustCordSetup-<version>.exe` with its `.sha256`.+<details>+<summary><b>Building on Linux</b></summary>++Install Rust, Git and the development libraries, then build and pack it:++```sh+# Ubuntu / Debian+sudo apt install build-essential pkg-config cmake nasm libwebkit2gtk-4.1-dev libgtk-3-dev \+ libasound2-dev libdbus-1-dev libssl-dev libxdo-dev+cargo build --release -p rustcord # the program: target/release/rustcord+sh packaging/linux/package.sh # dist/RustCord-<version>-linux-x86_64.tar.gz+```++`.github/workflows/linux.yml` is the exact recipe GitHub uses for the releases.++</details>+<details><summary><b>Good to know</b></summary>@@ -263,14 +295,16 @@ are declared with `SettingDef::{bool, text, select}` and RustCord draws their UI## π Privacy and security- **Logging in** happens on Discord's own login page (password, 2FA, captcha, QR code, passkey),- shown in WebView2 and closed with its processes as soon as you're in. RustCord only receives- the session token, keeps it in Windows Credential Manager and only ever sends it to discord.com.+ shown in an embedded browser (WebView2 on Windows, WebKitGTK on Linux) and closed as soon as+ you're in. RustCord only receives the session token, keeps it in Windows Credential Manager+ or your Linux desktop's keyring, and only ever sends it to discord.com.- **No telemetry:** RustCord sends none and doesn't call Discord's tracking endpoints.- **Blending in:** it presents itself to Discord as Discord's own web client, and paces itsrequests like it, because clients that stand out risk being flagged by Discord's anti-spam.- **Local data:** so your account opens instantly, a snapshot of it (servers, channels, DMs,friends, read states; never the token) is kept in `%LOCALAPPDATA%\RustCord`, encrypted for- your Windows account, and deleted when you log out.+ your Windows account, and deleted when you log out. On Linux it's in `~/.cache/rustcord` and+ not encrypted yet.<details><summary><b>Everything RustCord connects to</b></summary>@@ -313,6 +347,7 @@ silently, and `rustcord-uninstall.exe /S [--delete-data]` removes it.| --- | --- || `apps/rustcord` | The desktop app: UI (egui), account store, background network thread, demo mode || `apps/setup` | The Windows installer and uninstaller |+| `packaging/linux` | The Linux package: desktop entry, install script, packing script || `crates/discord` | Discord's data models, REST client with rate-limit pacing, gateway || `crates/voice` | Voice calls, camera and Go Live, with end-to-end encryption || `crates/rencord` | Plugin API, built-in plugins and the theme translator |@@ -334,7 +369,8 @@ and no automation. It can't make guarantees, though.<details><summary><b>Is my token safe?</b></summary>-You log in on Discord's own page. RustCord stores the token in Windows Credential Manager, sends+You log in on Discord's own page. RustCord stores the token in Windows Credential Manager (on+Linux, your desktop's keyring), sendsit only to discord.com, never writes it to its logs or cache, and has no server of its own thatever sees it.@@ -343,8 +379,8 @@ ever sees it.<details><summary><b>Does it run on macOS or Linux?</b></summary>-Not yet. RustCord is Windows-only for now: login, voice, screen capture and video decoding use-Windows' own components.+Linux, yes, as an experimental build since 0.4.37 (see [Downloads](#downloads)): everything but+Go Live screen sharing and the camera. macOS isn't supported yet.</details>