Mercurial > hg
view rust/chg/build.rs @ 50981:58390f59826f
rust-config: fix fallback to default not parsing the default value
When a config item's default is a string, it sometimes needs to be parsed
into another type, like in the case of `cmdserver.max-log-size`, that returns
a number of bytes from a human-readable amount like `25MB`.
The logic for the fix is explained inline.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 09 Aug 2023 15:41:18 +0200 |
parents | 1f5ab1a9363d |
children |
line wrap: on
line source
fn main() { cc::Build::new() .warnings(true) .file("src/sendfds.c") .file("src/sighandlers.c") .compile("procutil"); }