Skip to content

Commit

Permalink
feat: demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Jun 14, 2024
1 parent 954c966 commit b895036
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["sync", "rustAsync", "sse", "sync sse", "rustAsync sse"]}

pub fn this_function_should_be_ignored_because_of_mod_level_ignore() {}
2 changes: 2 additions & 0 deletions frb_example/pure_dart/rust/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,7 @@ pub mod structure;
pub mod tuple;
pub mod type_alias;
pub mod uuid_type;
#[flutter_rust_bridge::frb(ignore)]
pub mod deliberately_ignored_module;

pub fn function_at_api_mod_rs() {}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Future<void> generateRustMod(

const kPrefixes = {
'conditionally_compiled_module': '#[cfg(target_os = "non_existent_os")]',
'deliberately_ignored_module': '#[flutter_rust_bridge::frb(ignore)]',
};

final lines = [
Expand Down

0 comments on commit b895036

Please sign in to comment.