Expand description

Main documentation is in https://github.com/fzyzcjy/flutter_rust_bridge

Re-exports

Modules

Macros

Structs

  • Parsed configs, mainly used for internal logic

Functions

  • When the API is only defined in 1 rust file(block), take this one for generation, where config is the instance containing all information to the API file(block), and all_symbols contains all unique APIs defined in the file mentioned above. If APIs are defined in more than 1 rust file(block), use frb_codegen_multi instead.
  • This function is used only for cases with multi-blocks when there are more than one API block. In addition, because the current block to deal with needs information from all other blocks, all_configs is used here, with index referring to the place of the current block to deal with. For details on how to take advantage of multi-blocks, please refers to this article: https://cjycode.com/flutter_rust_bridge/feature/multiple_files.html
  • check api defined by users, if no duplicates, then generate all symbols (api function name), including those generated implicitly by frb
  • Initializes logging to file and standard output. All logs with level debug(with parameter verbose=true or system variable RUST_LOG=“debug”) or above will be recorded in ./logs/<date>.log. Logs with level info and above will be output to standard output, with colored tag.