cobble-core 1.2.0

Library for managing, installing and launching Minecraft instances and more.
Documentation
use cobble_core::Instance;
use tracing_subscriber::FmtSubscriber;

pub const INSTANCE_JSON: &str = include_str!("instance.json");

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    FmtSubscriber::builder()
        .with_env_filter("info,cobble_core=debug")
        .init();

    // Parse JSON
    let mut instance = serde_json::from_str::<Instance>(INSTANCE_JSON)?;
    instance.installed = true;

    let resourcepacks = instance.load_resourcepacks().await?;
    tracing::info!("{:#?}", resourcepacks);

    Ok(())
}