flutter_rust_bridge Skill
Main text is split into references/, with a short summary for each section
below.
References
- 01. Foundations and generation - Core FRB workflow, generated files, project layout, and regeneration rules.
- 02. API design, async, errors, security - Bridge API shape, async usage, typed errors, and security rules for sensitive data.
- 03. State, naming, serialization - Opaque state, naming and defaults, and when to use typed FRB models versus manual serialization.
- 04. Opaque types, dynamic values, callbacks - Opaque handles, dynamic escape hatches, Dart/Rust callbacks, and interaction patterns.
- 05. Lifetimes and Hoplixi boundaries - Lifetime-bearing APIs, borrow safety, and Hoplixi-specific ownership guidance.
- 06. Integration, testing, workflows - Dart/Rust layering, testing strategy, and common FRB task workflows.
- 07. Code style and generated files - Style rules plus the safe policy for generated files.
- 08. Type mapping, returns, streams - Rust-to-Dart type mapping, return and error behavior, and stream APIs. This is the main streams section.
- 09. Binary interop and custom codecs - Custom codecs, zero-copy binary transfer, and experimental UI-state utilities.
- 10. Low-level safety, cancellation, logging - Opaque lifecycle internals, cancellation, progress streams, logging, and review checklists.
Open the appropriate file depending on which part of the skill you're working on.
Source: vartec-chs/Hoplixi — distributed by TomeVault.