Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move binary to src #3

Closed
vks opened this issue Sep 16, 2015 · 6 comments
Closed

move binary to src #3

vks opened this issue Sep 16, 2015 · 6 comments

Comments

@vks
Copy link

vks commented Sep 16, 2015

I don't know what the motivation for having the binary in its own directory with its own Cargo.toml is, but I think it makes more sense to just move main.rs to src and delete the other files.

@vks
Copy link
Author

vks commented Sep 16, 2015

Is it possible to specify dependencies for the binary only?

@BurntSushi
Copy link
Owner

Can you explain a bit more why you think that is? tabwriter-bin has a dependency on both docopt.rs and rustc-serialize. Neither of these dependencies are necessary for this library's core functionality, so I see little reason to impose them on consumers.

@BurntSushi
Copy link
Owner

Is it possible to specify dependencies for the binary only?

@vks No.

@vks
Copy link
Author

vks commented Sep 16, 2015

Well, then I see why you need two Cargo.tomls, that is unfortunate.

(BTW, tabwriter-bin needs a cargo update to build.)

@vks
Copy link
Author

vks commented Sep 21, 2015

See rust-lang/cargo#1982 for implementing binary-only dependencies in Cargo.

@BurntSushi
Copy link
Owner

I don't feel any compelling urge to do this. If cargo grows this in the future at some point, we can revisit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants