Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jul 3, 2024
1 parent 13e87c2 commit a311b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frb_example/dart_minimal/flutter_rust_bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ local: true
#full_dep: true
#enable_lifetime: true
#stop_on_error: true

default_dart_async: false
3 changes: 3 additions & 0 deletions frb_example/dart_minimal/rust/src/api/minimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ pub fn init_app() {
pub fn minimal_adder(a: i32, b: i32) -> i32 {
a + b
}

#[frb(dart_async)]
pub fn f() {}

0 comments on commit a311b04

Please sign in to comment.