Removed lib structure

This commit is contained in:
2025-12-11 20:44:39 +01:00
parent dcb1259bc7
commit ec91e971c0
13 changed files with 32 additions and 2024 deletions
+26
View File
@@ -0,0 +1,26 @@
mod auth;
mod macros;
mod requests;
mod server;
mod types;
mod utils;
use std::path::PathBuf;
use server::ServerConfig;
use utils::vfs;
pub use anyhow::Context as ErrorContext;
pub use anyhow::Result;
pub use once_cell;
fn main() -> Result<()> {
let root = PathBuf::from("");
let config: ServerConfig = if let Ok(env_config) = std::env::var("VX_CONFIG") {
ServerConfig::from_str(&env_config)?
} else {
vfs::read_config(&root.join("config.json"))?
};
config.build(&root).run()?;
Ok(())
}