Overview

In the configuration section, we will explain in detail the specific information and configurable items of each configuration file

TIP

Generally speaking, you rarely need to modify these configuration files manually

Ract

.env

.env is the file that Ract points to for env.toml

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

.ract is the configuration file of the Ract compiler, which uses the toml format.

GenUI

gen_ui.toml

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.

Type mapping

In most GenUI projects, toml is used for configuration, and Rust types are used to map toml to types.

RustTOMLTOML FORMATTER
StringString" "
i_typeInteger0
u_typeInteger0
f32, f64Float0.0
boolBooltrue, false
Vec<R>Array<T>[ ]
enum (United)String" "
enum (Named)Table / InlineTable[[struct name]] {}
enum (Unnamed)Table / InlineTable[[struct name]] {}
structTable / InlineTable[[struct name]] {}
TIP

Stringalways use snake name rule

Table of Contents