Keep [[bin]] and lib dependencies separated

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!

1 Like

Your "real answer" is the only answer right now.

1 Like

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

1 Like