AI SummaryBuild the Rust native libraries for the keychatrustffiplugin. Ensure flutterrust_bridge codegen is installed: For Linux, install system dependencies:
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "rust-build" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/rust-build && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/rust-build/SKILL.md "https://raw.githubusercontent.com/keychat-io/keychat-app/main/.claude/skills/rust-build/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Build Rust native libraries for the FFI plugin
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 `
Arguments
• $ARGUMENTS - Target platform: ios, android, linux, windows, macos
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: `bash 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: `bash rustup target add <target> ` • Build the library: `bash cargo build --target <target> --release --target-dir target ` • Report build success or any errors
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster