mc-snap 0.2.3

Declarative Minecraft server management. Pin Minecraft, loader, mods, Java, and configs in one YAML file; resolve, install, run, and ship a reproducible bundle.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod fabric;
pub mod vanilla;

use crate::ServerLoader;
use std::sync::Arc;

pub fn for_kind(kind: &str) -> anyhow::Result<Arc<dyn ServerLoader>> {
    match kind {
        "vanilla" => Ok(Arc::new(vanilla::Vanilla::new())),
        "fabric" => Ok(Arc::new(fabric::Fabric::new())),
        other => anyhow::bail!("unknown loader: {other}"),
    }
}