Is it possible to launch a cargo watch in the workspace?

Foo
  Bar
  Baz
  Examples

Cargo.toml in Foo/

[workspace]
members = [
    "Bar",
    "Baz",
    "Examples",
]

Can I run cargo watch build ???in Foo/? So if I modify any file inside Bar, Bazor Examples, will it cause a rebuild?

+4
source share
1 answer

This can be done with cargo watch -x "build --all".

+1
source

Source: https://habr.com/ru/post/1652297/


All Articles