make dependencies for gdb-server crate not required
@@ -19,12 +19,16 @@ path = "src/lib.rs"
[[bin]]
name = "gdb-server"
path = "src/bin.rs"
+required-features = ["build-binary"]
+
+[features]
+build-binary = ["pretty_env_logger", "structopt", "failure", "colored"]
[dependencies]
-pretty_env_logger = "0.4.0"
-structopt = "0.3.2"
-failure = "0.1.5"
-colored = "1.8.0"
+pretty_env_logger = { version = "0.4.0", optional = true }
+structopt = { version = "0.3.2", optional = true }
+failure = { version = "0.1.5", optional = true }
+colored = { version = "1.8.0", optional = true }
probe-rs = { path = "../probe-rs", version = "0.5.0" }
gdb-protocol = { version = "0.1.0" }
recap = "0.1.1"
