mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
update readme
This commit is contained in:
parent
4903968309
commit
4e3ba05195
1 changed files with 0 additions and 2 deletions
|
|
@ -31,13 +31,11 @@ This guide in process
|
||||||
|
|
||||||
#### `browser`
|
#### `browser`
|
||||||
|
|
||||||
* Main file must have `mod.rs` name because it may include additional submodules in same location like database, template, etc
|
|
||||||
* The codebase of module must be as minimal as possible: separate different tasks to submodules
|
* The codebase of module must be as minimal as possible: separate different tasks to submodules
|
||||||
* Every module or it helper must contain and implement only one `struct`
|
* Every module or it helper must contain and implement only one `struct`
|
||||||
* Composition modules (like box for window) stored in sub-folders and following same principles as parent
|
* Composition modules (like box for window) stored in sub-folders and following same principles as parent
|
||||||
* Every mod access 1 level of child API, never parents (e.g.`super`)
|
* Every mod access 1 level of child API, never parents (e.g.`super`)
|
||||||
* One mod = one widget. Create new mod for new widget implementation
|
* One mod = one widget. Create new mod for new widget implementation
|
||||||
* Mod constructor must return [Arc pointer](https://doc.rust-lang.org/std/sync/struct.Arc.html) for new object created (to support async operations)
|
|
||||||
|
|
||||||
### Contribution
|
### Contribution
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue