forked from craftserverbot/elytra-ping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
42 lines (38 loc) · 1.39 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "elytra-ping"
description = "Easily ping and get the status of running Minecraft servers"
version = "5.1.0"
edition = "2021"
authors = ["doinkythederp"]
rust-version = "1.68"
categories = ["network-programming", "parser-implementations"]
keywords = ["minecraft", "server-list-ping", "ping"]
license = "ISC"
repository = "https://github.com/craftserverbot/elytra-ping"
[features]
default = ["java_parse", "java_connect", "simple", "bedrock"]
java_parse = ["dep:serde", "dep:serde_json"]
java_connect = ["dep:tokio", "dep:trust-dns-resolver"]
simple = ["java_connect", "java_parse"]
bedrock = ["dep:chrono", "dep:rand"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bytes = "1.2"
chrono = { version = "0.4", optional = true }
mc-varint = "0.1"
rand = { version = "0.8", optional = true }
serde = { version = "1.0", optional = true, features = ["serde_derive"] }
serde_json = { version = "1.0", optional = true }
snafu = { version = "0.8.1", features = ["backtraces-impl-backtrace-crate"] }
tokio = { version = "1.21", features = [
"net",
"io-util",
"macros",
"time",
], optional = true }
tracing = "0.1"
trust-dns-resolver = { version = "0.23", optional = true }
[dev-dependencies]
ctor = "0.2.4"
tokio = { version = "1.21", features = ["full"] }
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }