Frb feature flag

From fzyzcjy/flutter_rust_bridge · View interactive version

Frb feature flag is an AI agent skill from the GitHub repository fzyzcjy/flutter_rust_bridge. Use when adding or testing flutter_rust_bridge feature flags, especially flags that require coverage for both enabled and disabled states or should have package-level config plus item-level #[frb(...)] overrides.

How to use this skill

Skill file

FRB Feature Flags

Use this skill when adding a feature flag, changing a feature flag, or writing coverage for a feature flag.

API Surface

For feature flags requiring coverage for both enabled and disabled states:

Test Coverage

In frb_example/pure_dart, prefer tests that use the item-level #[frb(...)] override so enabled and disabled cases are both exercised in the same package.

Do not rely only on package-level config differences when both states can be covered clearly with item-level Rust APIs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.