Open2
Rustで設定項目(もしくは設定ファイル)をどう扱うか

設定ファイルなどいらん。環境変数なのだという場合
項目増えたら地獄だ…
自前で頑張る
std::env + toml-rsっぽい感じ
ダルい…クレート
クレート助けて…
-
https://github.com/mehcode/config-rs
- JSON, TOML, YAML, HJSON, INI, RON, JSON5
- https://blog.logrocket.com/configuration-management-in-rust-web-services/
- https://github.com/zupzup/rust-web-configuration-example
- https://github.com/alexcrichton/toml-rs
- https://github.com/Kixunil/configure_me
-
https://github.com/pyros2097/rust-embed
- 設定ファイルのためのサポートクレート