Skip to content
Back to skills

Rust Build

ASecurity

Build Rust native libraries for the FFI plugin

  • 97 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
developmentrustgobashapi

Works with

  • api

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add keychat-io/keychat-app --skill rust-build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/keychat-io-rust-build/badge)](https://www.skillsdirectory.com/skills/keychat-io-rust-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rust-build
description: Build Rust native libraries for the FFI plugin
argument-hint: "[target]"
disable-model-invocation: true
allowed-tools: Bash(cargo *), Bash(rustup *)
---

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:
```bash
cargo install flutter_rust_bridge_codegen@2.11.1
```

For Linux, install system dependencies:
```bash
apt install protobuf-compiler libsecret-1-dev
```

## Target Setup and Build Commands

| Platform | Target | Setup & Build |
|----------|--------|---------------|
| iOS | aarch64-apple-ios | `rustup target add aarch64-apple-ios && cargo build --target aarch64-apple-ios --release` |
| Android | aarch64-linux-android | `rustup target add aarch64-linux-android && cargo build --target aarch64-linux-android --release` |
| Linux | x86_64-unknown-linux-gnu | `rustup target add x86_64-unknown-linux-gnu && cargo build --target x86_64-unknown-linux-gnu --release` |
| Windows | x86_64-pc-windows-msvc | `rustup target add x86_64-pc-windows-msvc && cargo build --target x86_64-pc-windows-msvc --release` |
| macOS | aarch64-apple-darwin | `rustup target add aarch64-apple-darwin && cargo build --target aarch64-apple-darwin --release` |

## Workflow

1. Change to the Rust plugin directory:
   ```bash
   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:
   ```bash
   rustup target add <target>
   ```

4. Build the library:
   ```bash
   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:
```bash
cd packages/keychat_rust_ffi_plugin
flutter_rust_bridge_codegen generate
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.