summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/Cargo.toml
blob: 4e82f630b5cfe3e33e5f9af0ecb30fa88422cebd (plain)
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
[package]
name = "mullvad-api"
description = "Mullvad VPN API clients. Providing an interface to query our infrastructure for information."
authors.workspace = true
repository.workspace = true
license.workspace = true
edition.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[features]
# Allow the API server to use to be configured via MULLVAD_API_HOST and MULLVAD_API_ADDR.
api-override = []

[dependencies]
libc = "0.2"
chrono = { workspace = true }
thiserror = { workspace = true }
futures = "0.3"
http = "0.2"
hyper = { version = "0.14", features = ["client", "stream", "http1", "tcp" ] }
ipnetwork = "0.16"
log = { workspace = true }
serde = "1"
serde_json = "1.0"
tokio = { workspace = true, features = ["macros", "time", "rt-multi-thread", "net", "io-std", "io-util", "fs"] }
tokio-rustls = "0.24.1"
tokio-socks = "0.5.1"
rustls-pemfile = "1.0.3"
once_cell = { workspace = true }

mullvad-fs = { path = "../mullvad-fs" }
mullvad-types = { path = "../mullvad-types" }
talpid-types = { path = "../talpid-types" }
talpid-time = { path = "../talpid-time" }

shadowsocks = { workspace = true,  features = [ "stream-cipher" ] }

[build-dependencies]
cbindgen = { version = "0.24.3", default-features = false }

[target.'cfg(target_os = "ios")'.dependencies]
uuid = { version = "1.4.1", features = ["v4"] }

[lib]
crate-type = [ "rlib", "staticlib" ]
bench = false