← Browse

@keychat-io/rust-build

B

Build Rust native libraries for the FFI plugin

skillclaude

Install

agr install @keychat-io/rust-build --target claude

Writes 1 file into .claude/skills/, pinned to git-d27a7c86.

  • .claude/skills/rust-build/SKILL.md

Document


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:

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

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicensecopyleft/unknown — index-and-link only

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-d27a7c86fc092026-07-31