summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-06-29 09:48:27 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-07-02 12:16:33 +0200
commit6c8f497ee071a99c27a6906dcd5ffb40589bbc8e (patch)
treeab1d4df5715372401aaab4750c8cde0c05938fde
parentf04ffa0a8393d42f63813a71485ee043966417f1 (diff)
downloadmullvadvpn-6c8f497ee071a99c27a6906dcd5ffb40589bbc8e.tar.xz
mullvadvpn-6c8f497ee071a99c27a6906dcd5ffb40589bbc8e.zip
Only import ipnetwork/lazy_static on unix
-rw-r--r--talpid-core/Cargo.toml6
-rw-r--r--talpid-core/src/lib.rs2
2 files changed, 6 insertions, 2 deletions
diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml
index 4f2f68fed8..1040ebb007 100644
--- a/talpid-core/Cargo.toml
+++ b/talpid-core/Cargo.toml
@@ -9,10 +9,8 @@ license = "GPL-3.0"
atty = "0.2"
duct = "0.10"
error-chain = "0.12"
-ipnetwork = "0.13"
jsonrpc-core = { git = "https://github.com/paritytech/jsonrpc", tag = "v8.0.1" }
jsonrpc-macros = { git = "https://github.com/paritytech/jsonrpc", tag = "v8.0.1" }
-lazy_static = "1.0"
libc = "0.2.20"
log = "0.4"
openvpn-plugin = { version = "0.3", features = ["serde"] }
@@ -23,6 +21,10 @@ uuid = { version = "0.6", features = ["v4"] }
talpid-ipc = { path = "../talpid-ipc" }
talpid-types = { path = "../talpid-types" }
+[target.'cfg(unix)'.dependencies]
+ipnetwork = "0.13"
+lazy_static = "1.0"
+
[target.'cfg(target_os = "linux")'.dependencies]
notify = "4.0"
resolv-conf = "0.6.1"
diff --git a/talpid-core/src/lib.rs b/talpid-core/src/lib.rs
index a043538442..fd26752fac 100644
--- a/talpid-core/src/lib.rs
+++ b/talpid-core/src/lib.rs
@@ -17,10 +17,12 @@ extern crate log;
#[macro_use]
extern crate error_chain;
+#[cfg(unix)]
extern crate ipnetwork;
extern crate jsonrpc_core;
#[macro_use]
extern crate jsonrpc_macros;
+#[cfg(unix)]
#[macro_use]
extern crate lazy_static;
extern crate libc;