In the configuration section, we will explain in detail the specific information and configurable items of each configuration file
Generally speaking, you rarely need to modify these configuration files manually
.env is the file that Ract points to for env.toml
env.toml is the environment configuration file of Ract. From the content in this file, Ract can find the environment dependencies when the user is developing.
.ract is the configuration file of the Ract compiler, which uses the toml format.
gen_ui.toml is the configuration file of the GenUI project. It configures the compiler with specific project information and the underlying compilation and development plugins.
In most GenUI projects, toml
is used for configuration, and Rust
types are used to map toml
to types.
Rust | TOML | TOML FORMATTER |
---|---|---|
String | String | " " |
i_type | Integer | 0 |
u_type | Integer | 0 |
f32, f64 | Float | 0.0 |
bool | Bool | true, false |
Vec<R> | Array<T> | [ ] |
enum (United) | String | " " |
enum (Named) | Table / InlineTable | [[struct name]] {} |
enum (Unnamed) | Table / InlineTable | [[struct name]] {} |
struct | Table / InlineTable | [[struct name]] {} |
String
always use snake name rule