Skip to content

Linux build fails due to discord-rich-presence dependency #14

Description

@OTAKUWeBer

Attempting to build a Flutter Linux desktop application using flutter_discord_rpc results in a build failure. The Rust dependency discord-rich-presence cannot be fetched or compiled, causing the Linux build to fail, even though the plugin works on Windows.

Flutter Version:

Flutter 3.38.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 19074d12f7 (3 weeks ago) • 2025-11-20 17:53:13 -0500
Engine • hash 8bf2090718fea3655f466049a757f823898f0ad1 (revision 13e658725d) • 2025-11-20 20:19:23.000Z
Tools • Dart 3.10.1 • DevTools 2.51.1

Error Output:

FVP_DEPS_LATEST=
SEVERE: warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
SEVERE: error: failed to get `discord-rich-presence` as a dependency of package `flutter_discord_rpc v0.1.0 (/home/weberz/.pub-cache/hosted/pub.dev/flutter_discord_rpc-1.1.0/rust)`
Building Linux application...
Error: Build process failed

Steps to Reproduce:

  1. Install Flutter 3.38.3 on Linux.
  2. Add flutter_discord_rpc: ^1.1.0 to pubspec.yaml.
  3. Run flutter clean && flutter pub get.
  4. Run flutter run -d linux.

Expected Behavior:

  • Linux desktop build should succeed.
  • If Linux is unsupported, documentation should indicate that.

Actual Behavior:

  • Build fails on Linux due to the Rust dependency discord-rich-presence.
  • The plugin works fine on Windows.

Environment:

  • OS: Linux (Manjaro/Arch)
  • Rust version: 1.91.1

Additional Notes:

  • Warning about Rust workspace resolver appears:

    SEVERE: warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
    
  • Possible solutions:

    • Fix the Rust crate or provide a Linux-compatible binary.
    • Document that Linux is not supported and prevent build attempts on Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions