rust-build

SkillDev tools

Build Rust native libraries for the FFI plugin

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the rust-build skill

What this skill tells your AI

The instructions your AI receives, as published by keychat-io/keychat-app in .claude/skills/rust-build/SKILL.md and read by ahel’s review.

Build the Rust native libraries for the keychat_rust_ffi_plugin.

Arguments

  • $ARGUMENTS - Target platform: ios, android, linux, windows, macos

Prerequisites

Ensure flutter_rust_bridge codegen is installed:

cargo install flutter_rust_bridge_codegen@2.11.1

For Linux, install system dependencies:

apt install protobuf-compiler libsecret-1-dev

Target Setup and Build Commands

PlatformTargetSetup & Build
iOSaarch64-apple-iosrustup target add aarch64-apple-ios && cargo build --target aarch64-apple-ios --release
Androidaarch64-linux-androidrustup target add aarch64-linux-android && cargo build --target aarch64-linux-android --release
Linuxx86_64-unknown-linux-gnurustup target add x86_64-unknown-linux-gnu && cargo build --target x86_64-unknown-linux-gnu --release
Windowsx86_64-pc-windows-msvcrustup target add x86_64-pc-windows-msvc && cargo build --target x86_64-pc-windows-msvc --release
macOSaarch64-apple-darwinrustup target add aarch64-apple-darwin && cargo build --target aarch64-apple-darwin --release

Workflow

  1. Change to the Rust plugin directory:

    cd packages/keychat_rust_ffi_plugin/rust
    
  2. If no target specified, ask which platform to build for

  3. Add the rustup target if not already added:

    rustup target add <target>
    
  4. Build the library:

    cargo build --target <target> --release --target-dir target
    
  5. Report build success or any errors

Regenerating Dart Bindings

After modifying Rust API files, regenerate the Dart bindings:

cd packages/keychat_rust_ffi_plugin
flutter_rust_bridge_codegen generate

Signals

GitHub stars
97
Forks
7
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
rust-build
Source
github.com/keychat-io/keychat-app