mc-launcher-core 0.1.1

Rust building blocks for installing and launching Minecraft profiles.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use mc_launcher_core::{LauncherError, Result};

fn returns_error() -> Result<()> {
    Err(LauncherError::InvalidVersionId {
        id: "bad/version".to_string(),
    })
}

#[test]
fn launcher_error_formats_context() {
    let err = returns_error().unwrap_err();
    assert!(err.to_string().contains("bad/version"));
}