

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# CLAUDE.md23This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.45## Project Overview67`rust_api` is a Flutter FFI plugin using **flutter_rust_bridge v2.12.0** to call Rust functions from Dart. The Rust8library is compiled as both `cdylib` (dynamic) and `staticlib`, and bundled into Flutter apps on all platforms9(Android, iOS, macOS, Linux, Windows) via the `ffiPlugin: true` flag in `pubspec.yaml`.1011## Build System1213Platform builds are orchestrated by **cargokit** (`cargokit/`), a third-party build harness that invokes Cargo and14integrates with each platform's build system (Gradle for Android, CocoaPods for Apple, CMake for Linux/Windows).1516Rust compilation happens automatically as part of the host Flutter app's build — there's no standalone build step for17this plugin.1819## Code Generation2021All Dart-Rust bindings are generated by `flutter_rust_bridge_codegen`. The mapping is configured in22`flutter_rust_bridge.yaml`:2324```yaml25rust_input: crate::api # Rust source: rust/src/api/26rust_root: rust/27dart_output: lib/src/rust # Generated Dart output28```2930**To regenerate bindings** after changing Rust code:3132```bash33flutter_rust_bridge_codegen generate34```3536The generated files are `lib/src/rust/frb_generated.dart`, `lib/src/rust/frb_generated.io.dart`,37`lib/src/rust/frb_generated.web.dart`, `lib/src/rust/api/<module>.dart` (one per Rust source module),38and `rust/src/frb_generated.rs`. These should not be edited by hand.3940## Architecture4142```43Rust source Generated Dart Public Dart API44───────────────────── ───────────────────── ─────────────────45rust/src/api/ lib/src/rust/api/ lib/rust_api.dart46 mod.rs ──► init.rs (init has no Dart file)47 named_pipe.rs named_pipe.dart48 lib/src/rust/49 frb_generated.dart (re-exports RustLib)50 frb_generated.io.dart (FFI for native)51 frb_generated.web.dart (stub for web)52```5354- **Rust side** (`rust/src/api/`): Functions annotated with `#[flutter_rust_bridge::frb]` attributes. The `mod.rs`55 declares API modules.56- **Generated Dart** (`lib/src/rust/`): Auto-generated top-level functions that delegate through `RustLib.instance.api`.57- **Public API** (`lib/rust_api.dart`): Re-exports generated functions and `RustLib` for initialization.58- **`RustLib`** is the singleton entrypoint. Call `RustLib.init()` before calling any API functions, and59 `RustLib.dispose()` on teardown.6061## Adding a New Rust Function62631. Add a public function in `rust/src/api/` (in an existing module or a new one)642. If a new module, add `pub mod <name>;` to `rust/src/api/mod.rs`653. Run `flutter_rust_bridge_codegen generate`664. Export the new generated Dart file from `lib/rust_api.dart` if a new module was added
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chen08209/FlClashAGENTS.md · 49k | AGENTS.md | do-notagent-behaviour | 61/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| csells/dotprompt_dartCLAUDE.md · 5 | CLAUDE.md | testlint-formatarchtypes+4 | 100/100 | 14 days ago | |
| lollipopkit/flutter_server_boxCLAUDE.md · 8.5k | CLAUDE.md | buildteststylearch+2 | 98/100 | 14 days ago | |
| supabase/supabase.claude/CLAUDE.md · 108k | CLAUDE.md | testlint-formatstylearch+1 | 97/100 | 14 days ago | |
| imaNNeo/fl_chartCLAUDE.md · 7.6k | CLAUDE.md | teststylearchtesting-strategy+2 | 94/100 | 14 days ago | |
| we-promise/sureCLAUDE.md · 9.5k | CLAUDE.md | setuptestlint-formatstyle+11 | 93/100 | 13 days ago | |
| manaflow-ai/cmuxCLAUDE.md · 26k | CLAUDE.md | setupbuildteststyle+4 | 93/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/chen08209-flclash-plugins-rust-api-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.