Lev Khoroshansky

Results 68 comments of Lev Khoroshansky

Not exactly. Please take a look at `UnionFind`. Its name and types of fields should be red, but they are light green.

What's blocking this from being stabilised?

Isn't this a duplicate of #1319?

Sorry for bumping, but are there any updates on this?

[`axum` v0.6+](https://github.com/tokio-rs/axum) allows you to specify state needed by a handler as regular function arguments and do so in a compile-time fashion, erroring out when the state wasn't provided: *...

@A-Telfer thank you for this workaround! Works well with JSON configs.

Your approach uses global variables (`CONFIG_DIR = Path(get_config_dir())`) which is closer to "initialisation-time" than "runtime". It won't work for ```python def main(): config_path = os.environ["CONFIG_PATH"] config = Settings(_source_path=config_path) ``` since...

It's still "global" ("initialisation time"): `yaml_file=get_config_path()`.

I think `derive_more` could be a good replacement, especially since it just reached its 1.0.0 release: https://docs.rs/derive_more/latest/derive_more/

Guys, can we merge this? Really need this in prod, like, yesterday