Skip to content

Commit

Permalink
feat: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jun 12, 2024
1 parent e09098f commit f6ab878
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,14 @@ pub fn init_app() {
pub fn minimal_adder(a: i32, b: i32) -> i32 {
a + b
}

pub struct StructWithFieldRenameTwinNormal {
#[frb(name = "renamed_field")]
class: i32,
}

pub fn func_for_struct_with_field_rename_twin_normal(
arg: StructWithFieldRenameTwinNormal,
) -> StructWithFieldRenameTwinNormal {
arg
}

0 comments on commit f6ab878

Please sign in to comment.