Rocket-Config - Core API Documentation
Hello, and welcome to the core Rocket-Config API documentation!
Rocket-Config is a Rust library providing a plugin for Rocket loading and managing configuration files for Rocket.
It allows two configuration file formats: YAML and JSON. Deserialization is done using serde and specialized packages serde_json and serde_yaml.
Libraries
Rocket-Config's functionality is split into two crates:
- Core - This core library. Needed by every Rocket application using rocket-config.
- Codegen - Provides useful code generation functionality for many Rocket applications. Completely optional.
Usage
First, depend on rocket-config
in Cargo.toml
:
[]
= "0.0.1"
Then, add the following to the top of your main.rs
file:
extern crate rocket_config;
// ...