These are two files related to the configuration of the Ract environment. Generally speaking, you don't need to pay attention to them unless you need a development environment that is not directly hosted by Ract
You can find them manually for configuration or use the config command provided by Ract for configuration
Compared with manual, we recommend that you use the ract config command
If you don't know how to use Ract, please refer to: Ract Instructions
Take Ract installed using cargo as an example:
.env.env is the file that Ract points to for env.toml
Use the config command and select the first env option, then select the set option
The followings are options:
env.toml(chain_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.
Only [dependencies] in the env.toml file points to the dependency location
| key | value type | description | 
|---|---|---|
version | String | ract version number | 
is_latest | bool | Is it the latest version | 
auto_update | bool | Automatic update | 
check | Check | Detection | 
makepad-widgets | String | Dependency address of makepad-widgets | 
gen_components | String | Dependency address of gen_components(GenUI Builtin Components) | 
| key | value type | description | 
|---|---|---|
auto | bool | Automatic detection | 
last_time | u64 | Timestamp of the latest detection (s) | 
frequency | u64 | Detection frequency (s) | 
The modification method of env.toml is the same as .env. You only need to select chain_env_toml when Ract asks you.