Cargo supports using rust's cfg(...) mechanism as toml keys in configuration files. Here is an example.
toml_const almost supports this, but requires an extended set of REPLACE_CHARS in its macro processing. Updating the sequence of REPLACE_CHARS would allow toml_const to parse files such as Cargo.toml or .cargo/config.toml.
Cargo supports using rust's
cfg(...)mechanism as toml keys in configuration files. Here is an example.toml_constalmost supports this, but requires an extended set ofREPLACE_CHARSin its macro processing. Updating the sequence ofREPLACE_CHARSwould allowtoml_constto parse files such asCargo.tomlor.cargo/config.toml.