-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
76 lines (69 loc) · 2.02 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[package]
name = "flytrap"
description = "Query the Fly.io runtime environment"
version = "0.2.1"
edition = "2021"
license = "MIT"
authors = ["Lyra Naeseth <[email protected]>"]
homepage = "https://flytrap.fly.dev/"
repository = "https://github.com/silverlyra/flytrap"
categories = ["api-bindings", "config", "network-programming"]
keywords = ["fly", "fly-io"]
readme = "Readme.md"
[workspace]
members = ["demo"]
resolver = "2"
[features]
default = ["detect", "dns", "environment", "http", "regions"]
api = ["serde", "dep:reqwest"]
dns = ["dep:futures", "dep:hickory-resolver"]
detect = ["dep:if-addrs"]
environment = []
http = ["dep:headers", "dep:http"]
nightly = ["futures?/unstable", "headers?/nightly"]
regions = [
"dep:enum-map",
"dep:geo-types",
"dep:noisy_float",
"dep:lazy_static",
]
serde = [
"dep:serde",
"geo-types?/serde",
"enum-map?/serde",
"noisy_float?/serde",
]
system-resolver = [
"dns",
"hickory-resolver/ipconfig",
"hickory-resolver/resolv-conf",
"hickory-resolver/system-config",
]
[dependencies]
enum-map = { version = "^2.7", optional = true }
futures = { version = "0.3.29", default-features = false, optional = true, features = [
"std",
] }
geo-types = { version = "^0.7", optional = true }
headers = { version = "^0.4", optional = true }
hickory-resolver = { version = "^0.24", optional = true, default-features = false, features = [
"tokio-runtime",
] }
http = { version = "^1.0", optional = true }
if-addrs = { version = "^0.12", optional = true }
lazy_static = { version = "^1.4", optional = true }
noisy_float = { version = "^0.2", optional = true }
reqwest = { version = "^0.12", optional = true, features = ["json"] }
serde = { version = "^1.0", optional = true }
thiserror = { version = "^1.0" }
[dev-dependencies]
tokio = { version = "1.34.0", features = ["full"] }
[[example]]
name = "api"
required-features = ["api", "environment"]
[[example]]
name = "regions"
required-features = ["regions"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]