@keychat-io/rust-build
BBuild Rust native libraries for the FFI plugin
Install
agr install @keychat-io/rust-build --target claudeWrites 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
| 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
-
Change to the Rust plugin directory:
cd packages/keychat_rust_ffi_plugin/rust -
If no target specified, ask which platform to build for
-
Add the rustup target if not already added:
rustup target add <target> -
Build the library:
cargo build --target <target> --release --target-dir target -
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