config-rs icon indicating copy to clipboard operation
config-rs copied to clipboard

support "_" within numbers

Open lcmgh opened this issue 1 year ago • 1 comments

When using large numbers once can write 5_000 instead of 5000 in Rust. Using such a format in config files does not work.

lcmgh avatar Sep 25 '24 08:09 lcmgh

Some config file formats support this natively, like toml.

For us to support it in those that don't would require treating the value as a string. For formats with bare words, like yaml, that would be transparent (5_000). For others, it wouldn't ("5_000").

epage avatar Oct 10 '25 17:10 epage