I’d like a nicer, more convenient syntax for it, too.
That’s partly why I’m arguing against it, here. Having to use build.rs
is clunky, but maybe imposing a bit of separation and inconvenience isn’t a bad thing. I’ve seen some really horrific codebases using conditional compilation.
Plus, every time I try to imagine how to introduce named custom cfg
s directly in Rust source, it starts to smell of Inner Platform Effect, at which point I go think about something else.