Added icarus_envy #140

Merged
kdeng00 merged 12 commits from add_icarus_envy into v0.2 2025-06-01 20:20:33 -04:00
3 changed files with 0 additions and 17 deletions
Showing only changes of commit 4e2a9101cb - Show all commits
-9
View File
@@ -1,9 +0,0 @@
pub async fn get_db_url() -> String {
dotenvy::dotenv().ok();
std::env::var(crate::keys::DBURL).expect(crate::keys::error::ERROR)
}
pub async fn get_root_directory() -> Result<String, std::env::VarError> {
dotenvy::dotenv().ok();
std::env::var(crate::keys::ROOT_DIRECTORY)
}
-6
View File
@@ -1,6 +0,0 @@
pub const DBURL: &str = "DATABASE_URL";
pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY";
pub mod error {
pub const ERROR: &str = "DATABASE_URL must be set in .env";
}
-2
View File
@@ -1,6 +1,4 @@
pub mod callers;
pub mod environment;
pub mod keys;
pub mod db {