Skip to content

Commit

Permalink
dotenv -> dotenvy, serde_yaml -> serde_yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ddboline committed Oct 21, 2024
1 parent 5cbddc2 commit 0f71736
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dioxus = "0.5"
dioxus-core = "0.5"
dioxus-ssr = "0.5"
dirs = "5.0"
dotenv = "0.15"
dotenvy = "0.15"
envy = "0.4"
env_logger = "0.11"
flate2 = "1.0"
Expand All @@ -49,7 +49,7 @@ refinery = {version="0.8", features=["tokio-postgres"]}
reqwest = {version="0.12", features=["json", "rustls-tls"], default-features=false}
serde = { version="1.0", features=["derive"]}
serde_json = "1.0"
serde_yaml = "0.9"
serde_yml = "0.0.12"
smallvec = "1.6"
stack-string = { git = "https://github.com/ddboline/stack-string-rs.git", features=["postgres_types", "rweb-openapi"], tag="0.9.3" }
stdout-channel = "0.6"
Expand Down
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ impl Config {
&default_fname
};

dotenv::dotenv().ok();
dotenvy::dotenv().ok();

if env_file.exists() {
dotenv::from_path(env_file).ok();
dotenvy::from_path(env_file).ok();
}

let conf: ConfigInner = envy::from_env()?;
Expand Down
2 changes: 1 addition & 1 deletion src/security_log_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ async fn start_app() -> Result<(), AnyhowError> {
move || rweb::reply::json(spec.as_ref())
});

let spec_yaml = serde_yaml::to_string(spec.as_ref())?;
let spec_yaml = serde_yml::to_string(spec.as_ref())?;
let spec_yaml_path = rweb::path!("security_log" / "openapi" / "yaml")
.and(rweb::path::end())
.map(move || {
Expand Down

0 comments on commit 0f71736

Please sign in to comment.