kinetics 0.15.1

Kinetics is a hosting platform for Rust applications that allows you to deploy all types of workloads by writing **only Rust code**.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rust_dotenv::dotenv::DotEnv;
use std::collections::HashMap;
pub struct Envs;

/// Env variables defined in outer files
impl Envs {
    /// Read secrets from the .env file or env vars if file not found.
    pub fn load() -> HashMap<String, String> {
        if !std::path::Path::new(".env").exists() {
            log::debug!("No .env file found");
            return HashMap::new();
        }

        DotEnv::new("").all_vars().to_owned()
    }
}