-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
43 lines (38 loc) · 1.21 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
[package]
name = "public-ip-address"
version = "0.3.2"
edition = "2021"
authors = ["Tomash Ghz <[email protected]>"]
description = "A simple library for performing public IP and geolocation lookups from various services."
repository = "https://github.com/ghztomash/public-ip-address"
keywords = ["network", "geolocation", "geoip", "public", "ip" ]
categories = ["network-programming", "web-programming"]
license = "MIT OR Apache-2.0"
[features]
encryption = ["dep:cocoon", "dep:mid"]
blocking = ["maybe-async/is_sync", "reqwest/blocking"]
[dependencies]
reqwest = { version = "0.12" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
directories = "5.0"
thiserror = "1.0"
log = "0.4"
maybe-async = "0.2"
cocoon = { version = "0.4", optional = true }
mid = { version = "2.0", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
tokio-test = "0.4"
crossterm = { version = "0.27" }
ratatui = { version = "0.26" }
rusty-hook = { version = "0.11" }
serial_test = { version = "3.0" }
env_logger = { version = "0.11" }
[profile.dev.package.cocoon]
opt-level = 3
[profile.dev.package.sha2]
opt-level = 3
[[example]]
name = "blocking"
required-features = ["blocking"]