Keep [[bin]] and lib dependencies separated


#1

Is it possible to move entries out of the master [dependencies] list and over to the [[bin]] entry?

I’m looking for something like this:

[[bin]]
name="graphite"
[[graphite.dependencies]]
iron = "*"
# router = "*"
urlencoded = "*"
glob = "*"
# iron-test = "*"
persistent = "*"
router = "*"

I think the real answer is “move that binary to its own crate” but maybe there’s a shortcut here!


#2

Your “real answer” is the only answer right now.


#3

Currently it’s not possible to have binary-only dependencies, but that’s being tracked by https://github.com/rust-lang/cargo/issues/1982