-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
28 lines (26 loc) · 1.03 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
[package]
name = "yggdrasilctl"
version = "1.2.2"
authors = ["Remy D. Farley <[email protected]>"]
categories = ["network-programming"]
description = "Blazingly fast Yggdrasil Admin API library"
edition = "2021"
keywords = ["yggdrasil", "yggdrasil-network", "yggdrasilctl"]
license = "MIT"
repository = "https://github.com/one-d-wide/yggdrasilctl"
resolver = "2" # Disallow feature unification
[features]
# Take `Write` and `Read` traits from `std` crate
use_std = [ "dep:maybe-async", "maybe-async?/is_sync" ]
# Take `AsyncWrite` and `AsyncRead` traits from `tokio` crate
use_tokio = [ "dep:maybe-async", "dep:tokio" ]
# Take `AsyncWrite` and `AsyncRead` traits from `futures` crate
use_futures = [ "dep:maybe-async", "dep:futures" ]
default = [ "use_std" ]
[dependencies]
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
maybe-async = { version = "0", optional = true }
# Async runtime
futures = { version = "0", optional = true }
tokio = { version = "1", features = [ "io-util", "net", "macros", "rt" ], optional = true }