2 unstable releases
0.2.0 | Jun 26, 2024 |
---|---|
0.1.0 | Jun 25, 2024 |
#120 in Caching
32 downloads per month
42KB
518 lines
Remote config
This crate provides easy way to asynchronously pull configuration files from external source (e.g. centralized HTTP service).
It was originally developed to load public keys from https://www.googleapis.com/robot/v1/metadata/x509/securetoken@system.gserviceaccount.com
and revalidate them periodically.
Features
- Supports both
static
and wrapped inArc
configs. - Flexible
RemoteConfig
struct that uses any custom data provider and automatically revalidates data when it becomes stale. - Supports loading configuration in JSON, YAML, XML and TOML via HTTP out of the box (Uses
Cache-Control
andContent-Type
headers).
Documentation and examples
Refer to documentation and examples on docs rs.
State of the project
Project is not guaranteed to actively receive any new features without requests, but is maintained. Feature requests, bug reports, pull requests, corrections to docs or examples are gladly accepted.
Code is tested, with unit and integration tests.
Currently, this project is not used in production environment.
Contributing
If you found a bug, submit an issue or pull requests.
Any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.
Licence
This project is licenced under the MIT licence.
Dependencies
~2–13MB
~148K SLoC