Project Structure

The GenUI project adopts a typical Rust Workspace structure, consisting of multiple sub-projects. Below is a description of the project directory and its functions:

TIP
  • #: Descriptor, the specific name is unknown, for example, #workspace means the project name of a workspace project created by the user
  • []: means optional

About file configuration:

workspace
1#workspace
23├── source_project             // Source code package
4│   ├── src/                   // Rust source code files
5│   │   └── main.rs            // Project entry file (usually empty)
6│   ├── resources/             // Static resources
7│   ├── views/                 // Main page files
8│   │   ├── root.gen           // UI entry file
9│   │   ├── home.gen           // Home page
10│   │   └── mod.gen            // Page export mod file
11│   ├── components/            // Component files
12│   │   ├── hello.gen          // Hello component
13│   │   ├── easy.gen           // Easy component
14│   │   └── mod.gen            // Component export mod file
15│   ├── .gen_ui_cache          // Cache files
16│   ├── [router.toml]          // router configuration
17│   ├── Cargo.toml             // Rust package configuration file
18│   └── gen_ui.toml            // GenUI project configuration file
1920├── compiled_project           // Compiled result package
2122├── .ract                      // Ract configuration file
23├── Cargo.toml                 // Workspace configuration file
24├── Cargo.lock                 // Dependency lock file
25├── [.gitignore]               // gitignore (optional)
26└── [LICENSE]                  // Project license file (optional)