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

Watch custom lib and bin directories #35

Closed
yberreby opened this issue Mar 14, 2016 · 4 comments
Closed

Watch custom lib and bin directories #35

yberreby opened this issue Mar 14, 2016 · 4 comments
Assignees

Comments

@yberreby
Copy link

Cargo supports custom paths for library and binary targets, but cargo-watch does not read Cargo.toml to know what directories to watch.

That is, if I have lib/lib.rs and bin/main.rs, cargo-watch does not detect changes to these files.

@passcod
Copy link
Member

passcod commented Mar 15, 2016

Maybe duplicate/related to #31.

@yberreby
Copy link
Author

Not quite a duplicate, but indeed related and waiting on rust-lang/cargo#1989. Maybe leave this issue open until the upstream issue is resolved.

@passcod
Copy link
Member

passcod commented Dec 29, 2016

👍 Going to do this. Don't have an ETA, but it's on the todolist.

Initial implementation will parse the Cargo.toml or something to watch the right thing.

@passcod passcod self-assigned this Mar 27, 2017
@passcod
Copy link
Member

passcod commented Mar 29, 2017

This is now done with the entirely new version 4.0.0! It's a bit different from what was said here, as v4 watches the entire project and filters out target/ (and whatever other patterns you specify) instead of only watching specific folders.

@passcod passcod closed this as completed Mar 29, 2017
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