Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate flutter_rust_bridge #7502

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

LucasXu0
Copy link
Collaborator

@LucasXu0 LucasXu0 commented Mar 11, 2025

Prerequisites

  1. Install the code generator: cargo install flutter_rust_bridge_codegen
  2. Ensure you have Rust version 1.85 or higher installed
  3. Generate the bridge code with: flutter_rust_bridge_codegen generate

Troubleshooting

Compilation Error with Rust <1.85
If you encounter this error:

Copy
Compiling rust_lib_appflowy v0.1.0
error[E0658]: `#[unsafe()]` markers for attributes are experimental
   --> src/frb_generated.rs:249:5
    |
249 |     flutter_rust_bridge::frb_generated_boilerplate_io!();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Solution: Update your Rust installation to version 1.85 or higher using:

rustup update stable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant