-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Modules | ||
|
||
:::info | ||
Currently, only commonly used module syntaxes are supported | ||
(feel free to create an issue if you need something not implemented yet). | ||
When implementing more sophisticated module grammar parser, | ||
it is possible to have breaking changes caused by improved understanding of modules not following semver. | ||
However, such changes are usually trivial to migrate. | ||
::: | ||
|
||
## Support of modules | ||
|
||
Since `flutter_rust_bridge` utilizes cargo-expand to understand the source code, | ||
many Rust module grammar are supported automatically. | ||
For example, `mod something;` and `mod another_inline_module { ... }` are both allowed. | ||
|
||
## Support of `pub use` | ||
|
||
It is supported to have code like: | ||
|
||
* `pub use a::b::c;` (normal imports) | ||
* `pub use a::b::*;` (wildcard imports) | ||
* `pub use a::{b, x::{y,z}};` (multiple imports even with such nesting) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters