# 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.85"
name = "geyserlite"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embed GeyserMC's Bedrock-Java translation in Rust programs (in-process via libloading, or as a managed subprocess)"
homepage = "https://github.com/minekube/geyserlite"
readme = "README.md"
keywords = [
    "minecraft",
    "bedrock",
    "geyser",
    "minekube",
    "graalvm",
]
categories = [
    "network-programming",
    "external-ffi-bindings",
]
license = "MIT"
repository = "https://github.com/minekube/geyserlite"

[features]
default = []
download = [
    "dep:reqwest",
    "dep:sha2",
]
embed = ["dep:sha2"]

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

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "custom_config"
path = "examples/custom_config.rs"

[[example]]
name = "floodgate"
path = "examples/floodgate.rs"

[[example]]
name = "fly"
path = "examples/fly.rs"

[[example]]
name = "healthcheck"
path = "examples/healthcheck.rs"

[[example]]
name = "integration_test"
path = "examples/integration_test.rs"

[dependencies.getrandom]
version = "0.3"

[dependencies.libc]
version = "0.2"

[dependencies.libloading]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.serde_yaml_ng]
version = "0.10"

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

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "process",
    "signal",
    "rt-multi-thread",
    "io-util",
    "time",
    "sync",
]

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.base64]
version = "0.22"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
