diff --git a/README.md b/README.md index bdf2b0f..82cc1b5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ provide a featured web framework - [x] everything of axum - [ ] automatically swagger api generation - [x] built-in message mechanism - - [x] environment based configuration system, support environment resolver `${ANY_ENV_VAR}` and path variable `${app.database.name}` powered by [yaac](https://crates.io/crates/yaac) + - [x] environment based configuration system, support environment resolver `${ANY_ENV_VAR}` and path variable `${app.database.name}` powered by [mofa](https://crates.io/crates/mofa) - [x] logging system - [x] opt-in prometheus integration - [x] task system with interval and cron diff --git a/gotcha/Cargo.toml b/gotcha/Cargo.toml index 91716ae..2bb7c14 100644 --- a/gotcha/Cargo.toml +++ b/gotcha/Cargo.toml @@ -35,7 +35,7 @@ cron = {version = "0.12.0", optional = true} chrono = "0.4.23" http = "0.2" oas = { version = "0.1", optional = true } -yaac = "0.1" +mofa = "0.1" axum = {version = "0.7", default-features = false, features = ["form", "json", "query"]} tower-layer = "0.3.2" tower-service = "0.3.2" diff --git a/gotcha/src/config.rs b/gotcha/src/config.rs index 79c25a2..03dd091 100644 --- a/gotcha/src/config.rs +++ b/gotcha/src/config.rs @@ -3,7 +3,7 @@ use std::str::FromStr; use serde::de::DeserializeOwned; use serde::{Deserialize, Serialize}; -use yaac::{ConfigLoader, EnvironmentSource, FileSource}; +use mofa::{ConfigLoader, EnvironmentSource, FileSource}; use crate::error::GotchaError;