After 2 designs and a lot of iteration, I'm pleased to introduce the first public release of actix-settings, which allows you to:
- Enable servers written using
actix-webto have a single, easy-to-modify place for settings exposed by
actix-web, e.g. the number of workers, the length of the backlog of pending connections, the maximum number of simultaneous connections, etc. This place comes in the form of a
TOMLfile, the location of which you can choose yourself.
- Easily override those settings when necessary e.g. by means of env vars (but other sources are also supported)
- Store, in the same
TOMLfile, settings that are specific to the server you're writing. This allows for a single file to contain all settings that are relevant to the server, regardless of whether they are implemented by
actix-webor by the server itself.
- Easily apply the settings to your server.
If this sounds interesting to you, I encourage you to have a look at the GitHub project page.