[PR #7502] [CLOSED] feat: integrate flutter_rust_bridge #7922

Closed
opened 2026-03-23 23:21:47 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7502
Author: @LucasXu0
Created: 3/11/2025
Status: Closed

Base: mainHead: flutter_rust_bridge_v3


📝 Commits (4)

  • ea82331 feat: integrate flutter_rust_bridge
  • 9d45843 feat: integrate reqwest
  • 9f048da feat: integrate folder list api
  • 995c343 feat: add folder api

📊 Changes

72 files changed (+10684 additions, -27 deletions)

View changed files

📝 frontend/appflowy_flutter/analysis_options.yaml (+1 -0)
frontend/appflowy_flutter/flutter_rust_bridge.yaml (+4 -0)
📝 frontend/appflowy_flutter/lib/main.dart (+4 -0)
frontend/appflowy_flutter/lib/src/rust/folder/entities.dart (+152 -0)
frontend/appflowy_flutter/lib/src/rust/folder/folder.dart (+28 -0)
frontend/appflowy_flutter/lib/src/rust/frb_generated.dart (+991 -0)
frontend/appflowy_flutter/lib/src/rust/frb_generated.io.dart (+352 -0)
frontend/appflowy_flutter/lib/src/rust/frb_generated.web.dart (+340 -0)
frontend/appflowy_flutter/lib/src/rust/lib.dart (+10 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart (+13 -0)
📝 frontend/appflowy_flutter/macos/Podfile.lock (+29 -23)
📝 frontend/appflowy_flutter/pubspec.lock (+23 -0)
📝 frontend/appflowy_flutter/pubspec.yaml (+3 -0)
frontend/appflowy_flutter/rust/.gitignore (+1 -0)
frontend/appflowy_flutter/rust/Cargo.lock (+3667 -0)
frontend/appflowy_flutter/rust/Cargo.toml (+28 -0)
frontend/appflowy_flutter/rust/src/api/mod.rs (+1 -0)
frontend/appflowy_flutter/rust/src/api/simple.rs (+26 -0)
frontend/appflowy_flutter/rust/src/core/core.rs (+9 -0)
frontend/appflowy_flutter/rust/src/core/mod.rs (+1 -0)

...and 52 more files

📄 Description

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7502 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 3/11/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `flutter_rust_bridge_v3` --- ### 📝 Commits (4) - [`ea82331`](https://github.com/AppFlowy-IO/AppFlowy/commit/ea8233134895ffffd9fc99ece86b32262a54d17e) feat: integrate flutter_rust_bridge - [`9d45843`](https://github.com/AppFlowy-IO/AppFlowy/commit/9d45843a226cd0db867b76bd822d8ad96e99e9ad) feat: integrate reqwest - [`9f048da`](https://github.com/AppFlowy-IO/AppFlowy/commit/9f048dab65b3e8d9e8f748d8735edbc9437e5ad9) feat: integrate folder list api - [`995c343`](https://github.com/AppFlowy-IO/AppFlowy/commit/995c34310e449986b306a36cf3bcee8db858cce3) feat: add folder api ### 📊 Changes **72 files changed** (+10684 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/analysis_options.yaml` (+1 -0) ➕ `frontend/appflowy_flutter/flutter_rust_bridge.yaml` (+4 -0) 📝 `frontend/appflowy_flutter/lib/main.dart` (+4 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/folder/entities.dart` (+152 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/folder/folder.dart` (+28 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/frb_generated.dart` (+991 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/frb_generated.io.dart` (+352 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/frb_generated.web.dart` (+340 -0) ➕ `frontend/appflowy_flutter/lib/src/rust/lib.dart` (+10 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/user/user_workspace_bloc.dart` (+13 -0) 📝 `frontend/appflowy_flutter/macos/Podfile.lock` (+29 -23) 📝 `frontend/appflowy_flutter/pubspec.lock` (+23 -0) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+3 -0) ➕ `frontend/appflowy_flutter/rust/.gitignore` (+1 -0) ➕ `frontend/appflowy_flutter/rust/Cargo.lock` (+3667 -0) ➕ `frontend/appflowy_flutter/rust/Cargo.toml` (+28 -0) ➕ `frontend/appflowy_flutter/rust/src/api/mod.rs` (+1 -0) ➕ `frontend/appflowy_flutter/rust/src/api/simple.rs` (+26 -0) ➕ `frontend/appflowy_flutter/rust/src/core/core.rs` (+9 -0) ➕ `frontend/appflowy_flutter/rust/src/core/mod.rs` (+1 -0) _...and 52 more files_ </details> ### 📄 Description # 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: ```shell 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 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:21:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7922
No description provided.