eejit 0.2.1

A self-hosted Git server that's easy to set up, use, and maintain.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::config::server::{load_server_config, ServerConfig};

pub struct State {
    pub server_config: ServerConfig,
}

impl State {
    pub async fn new() -> anyhow::Result<Self> {
        let state = State {
            server_config: load_server_config().await?,
        };

        Ok(state)
    }
}