Docs.rs
  • cobble-core-1.2.0
    • cobble-core 1.2.0
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • Stefan99353
    • Dependencies
      • anyhow ^1.0 normal optional
      • async-trait ^0.1 normal
      • async_zip ^0.0.9 normal
      • base64 ^0.13 normal optional
      • derive_builder ^0.11 normal
      • fastnbt ^2.3 normal optional
      • flate2 ^1.0 normal optional
      • futures ^0.3 normal
      • hex ^0.4 normal
      • mime_guess ^2.0 normal optional
      • oauth2 ^4.2 normal optional
      • parking_lot ^0.12 normal
      • reqwest ^0.11 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • sha1 ^0.10 normal
      • tar ^0.4 normal optional
      • thiserror ^1.0 normal
      • time ^0.3 normal
      • tokio ^1.21 normal
      • tokio-stream ^0.1 normal
      • tracing ^0.1 normal
      • uuid ^1.2 normal
      • anyhow ^1.0 dev
      • tokio ^1.21 dev
      • tracing-subscriber ^0.3 dev
      • fork ^0.1 normal
      • ipc-channel ^0.16 normal
      • nix ^0.25 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-unknown-linux-gnu
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate cobble_core

cobble_core1.2.0

  • All Items

Sections

  • cobble-core
    • Usage
    • Stability
    • Crate Features
    • License

Crate Items

  • Re-exports
  • Modules

Crates

  • cobble_core

Crate cobble_core

Source
Expand description

§cobble-core

crates.io Documentation MSRV Dependency Status License Pipeline

A Rust library for managing, installing and launching Minecraft instances and more.

This crate provides the following features (some are locked behind features):

  • Complete installation of Minecraft from the official resources
  • Launching the game in a vanilla fashion (No additional Java classes)
  • Authentication with Microsoft/Minecraft servers for online play
  • Usage of instances to ease installation, launching and managing multiple installs
  • Supports installing and launching with the fabric loader.
  • Managing of various objects used and created by Minecraft (Logs, Resourcepacks, Save Games, Screenshots, Servers, Mods, Shaderpacks)

§Usage

Add this to your Cargo.toml:

[dependencies]
cobble-core = "1.2"

To get started, see various examples of this crate here.

This crate is based on the tokio async crate. Some functionality requires a tokio runtime.

§Stability

This crate can’t be tested using every Minecraft version there is (I sadly do not have time for that). This means I try to test this crate with some different versions. Most tests are for the newer releases of Minecraft.

The following versions have been tested:

  • 1.19.2

If you have success using different Minecraft versions, you can open a Pull Request to add it.

§Crate Features

  • auth: Provides authentication support for online mode.
  • backup: Provides functionality creating and loading backups. Currently implemented for save-games.
  • serde: Provides Deserialize and Serialize implementation for many structs.
  • vanilla (default): Includes features log-files, resourcepacks, save-games, screenshots and servers.
  • log-files (default): Provides functionality for reading and extracting log files.
  • resourcepacks (default): Provides functionality for interacting with resourcepacks.
  • save-games (default): Provides functionality for interacting with save games.
  • screenshots (default): Provides functionality for interacting with screenshots.
  • servers (default): Provides functionality for interacting with servers.
  • modded: Includes features fabric, loader-mods and shaderpacks.
  • fabric: Provides functionality for installing and launching with the fabric loader.
  • loader-mods: Provides functionality for interacting with mods.
  • shaderpacks: Provides functionality for interacting with shaderpacks.

§License

cobble-core is distributed under the terms of the MIT license.

See LICENSE for details.

Re-exports§

pub use instance::Instance;
pub use instance::InstanceBuilder;

Modules§

error
Error types
instance
Instance related functionality
minecraft
Minecraft related functionality
profileauth
Utitlities for authentication and online play
utils
Utilities used in this crate

Results

Settings
Help

Query parser error: "Unexpected - (did you mean ->?)".