mcapi 0.3.1

Unified async Rust client for the Minecraft ecosystem (Mojang, Modrinth, CurseForge, Yggdrasil, Blessing Skin, Loaders, BMCLAPI, and Java Runtimes)
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "mcapi"
version = "0.3.1"
build = false
exclude = [
    ".envrc",
    ".github/",
    ".editorconfig",
    ".gitattributes",
    "flake.lock",
    "flake.nix",
    ".release-please-manifest.json",
    "AGENTS.md",
    "CONTRIBUTING.md",
    "deny.toml",
    "release-please-config.json",
    "rustfmt.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unified async Rust client for the Minecraft ecosystem (Mojang, Modrinth, CurseForge, Yggdrasil, Blessing Skin, Loaders, BMCLAPI, and Java Runtimes)"
documentation = "https://docs.rs/mcapi"
readme = "README.md"
keywords = [
    "minecraft",
    "mojang",
    "modrinth",
    "curseforge",
    "yggdrasil",
]
categories = [
    "api-bindings",
    "games",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/morphismx/mcapi"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
blessing = [
    "http",
    "reqwest/multipart",
]
bmclapi = ["http"]
curseforge = [
    "http",
    "dep:jiff",
]
curseforge-cdn-fallback = ["curseforge"]
default = [
    "full",
    "tls-aws-lc",
]
full = [
    "curseforge",
    "modrinth",
    "mojang",
    "yggdrasil",
    "yggdrasil-authlib",
    "blessing",
    "loaders",
    "bmclapi",
    "java",
]
http = [
    "dep:reqwest",
    "dep:url",
    "dep:tokio",
    "tokio/time",
]
java = [
    "http",
    "dep:jiff",
]
loaders = [
    "http",
    "dep:quick-xml",
]
modrinth = [
    "http",
    "dep:jiff",
]
modrinth-write = [
    "modrinth",
    "reqwest/multipart",
]
mojang = [
    "http",
    "profile",
    "dep:jiff",
    "dep:getrandom",
    "dep:sha2",
    "reqwest/form",
    "reqwest/multipart",
]
profile = [
    "dep:url",
    "dep:base64",
]
stream = [
    "http",
    "reqwest/stream",
]
tls-aws-lc = ["reqwest?/rustls"]
tls-native = ["reqwest?/native-tls"]
tls-native-vendored = ["reqwest?/native-tls-vendored"]
tls-rustls-no-provider = ["reqwest?/rustls-no-provider"]
tracing = ["dep:tracing"]
yggdrasil = [
    "http",
    "profile",
    "reqwest/multipart",
]
yggdrasil-authlib = ["yggdrasil"]
yggdrasil-verify = [
    "yggdrasil",
    "dep:rsa",
    "dep:sha1",
]

[lib]
name = "mcapi"
path = "src/lib.rs"

[[test]]
name = "integration"
path = "tests/integration/main.rs"

[dependencies.base64]
version = "0.23.1"
optional = true

[dependencies.getrandom]
version = "0.4"
optional = true

[dependencies.jiff]
version = "1.1"
features = [
    "std",
    "serde",
    "perf-inline",
]
optional = true
default-features = false

[dependencies.md-5]
version = "0.11.0"

[dependencies.quick-xml]
version = "0.42"
features = ["serialize"]
optional = true

[dependencies.reqwest]
version = "0.13.5"
features = [
    "json",
    "query",
]
optional = true
default-features = false

[dependencies.rsa]
version = "0.10.0"
features = [
    "getrandom",
    "pkcs1v15",
]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha1]
version = "0.11.0"
features = ["oid"]
optional = true

[dependencies.sha2]
version = "0.11.0"
optional = true

[dependencies.thiserror]
version = "2.0.21"

[dependencies.tokio]
version = "1.54"
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.url]
version = "2.5.9"
features = ["serde"]
optional = true

[dependencies.uuid]
version = "1.26.1"
features = [
    "serde",
    "v4",
]

[dev-dependencies.tokio]
version = "1.54"
features = [
    "net",
    "io-util",
    "rt",
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
]
default-features = false

[lints.clippy]
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
manual_let_else = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
result_large_err = "warn"
todo = "warn"
trivially_copy_pass_by_ref = "warn"
unimplemented = "warn"
uninlined_format_args = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]