rust-build
Builds Rust native libraries for cross-platform integration.
Install
mkdir -p .claude/skills/rust-build && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11958" && unzip -o skill.zip -d .claude/skills/rust-build && rm skill.zipInstalls to .claude/skills/rust-build
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Build Rust native libraries for the FFI pluginKey capabilities
- →Build Rust native libraries for specified target platforms
- →Add rustup targets for cross-compilation
- →Compile Rust code in release mode
- →Report build success or errors
- →Regenerate Dart bindings after Rust API modifications
How it works
The skill changes to the Rust plugin directory, adds the specified rustup target, and then builds the library using 'cargo build' for that target in release mode.
Inputs & outputs
When to use rust-build
- →Build native libraries for mobile
- →Compile Rust for cross-platform FFI
- →Prepare FFI binary assets
About this skill
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 [email protected]
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
When not to use it
- →When the user does not specify a target platform for the build
- →When flutter_rust_bridge codegen is not installed
- →When system dependencies for Linux are not installed
Prerequisites
Limitations
- →It requires `flutter_rust_bridge_codegen` to be installed.
- →It requires specific system dependencies for Linux builds.
- →It needs a target platform to be specified for the build.
How it compares
This skill automates the cross-compilation of Rust FFI libraries for multiple platforms, unlike manually configuring and building for each target.
Compared to similar skills
rust-build side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| rust-build (this skill) | 0 | 5mo | Review | Intermediate |
| hula-skill | 3 | 7mo | Review | Intermediate |
| release-bump | 1 | 5mo | No flags | Beginner |
| domain-iot | 1 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
hula-skill
HuLaSpark
HuLa project skill for frontend (Vue 3 + Vite + UnoCSS + Naive UI/Vant), backend (Tauri v2 + Rust + SeaORM/SQLite), full-stack flows, and build/release work. Use when the user mentions hula or HuLa or requests changes in this repository; after triggering, ask which scope (frontend/backend/fullstack/build-release) to enable.
release-bump
mikeyobrien
Use when bumping ralph-orchestrator version for a new release, after fixes are committed and ready to publish
domain-iot
actionbook
Use when building IoT apps. Keywords: IoT, Internet of Things, sensor, MQTT, device, edge computing, telemetry, actuator, smart home, gateway, protocol, 物联网, 传感器, 边缘计算, 智能家居
domain-cloud-native
actionbook
Use when building cloud-native apps. Keywords: kubernetes, k8s, docker, container, grpc, tonic, microservice, service mesh, observability, tracing, metrics, health check, cloud, deployment, 云原生, 微服务, 容器
simulator-management
pmaojo
description: Capabilities for managing and troubleshooting the API Simulator.
release-rust-srec
hua0512
Prepare a new rust-srec application release end to end — pick the next semver version, bump the workspace version, promote the staged unreleased.md notes into versioned en+zh release-notes pages, reset unreleased, refresh the release-notes index/sidebar/GitHub-body, and emit the rust-srec-vX.Y.Z tag