Expand description
Main documentation is in https://github.com/fzyzcjy/flutter_rust_bridge
Re-exports
pub use crate::config::opts_parser::config_parse;
Modules
Macros
- For structs that only has an
inner
serializable property that would be better (de)serialized as a newtype. - Adds some common derives for IR types.
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), andall_symbols
contains all unique APIs defined in the file mentioned above. If APIs are defined in more than 1 rust file(block), usefrb_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, withindex
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 parameterverbose
=true or system variableRUST_LOG
=“debug”) or above will be recorded in./logs/<date>.log
. Logs with levelinfo
and above will be output to standard output, with colored tag.