If you run cargo build twice in a row, swbus-core gets built twice despite not changing. That's because the build script is telling cargo to look for changes in a file that doesn't exist.
$ cargo build -vv
...
Dirty swbus-core v0.1.0 (/home/user/prog/work/sonic-dash-ha/crates/swbus-core): the file `crates/swbus-core/swbus` is missing
...
[swbus-core 0.1.0] cargo:rerun-if-changed=swbus
To fix this, I removed this 'includes' parameter from the protobuf compile call, as it is currently unnecessary and causes the problem.
If you run cargo build twice in a row, swbus-core gets built twice despite not changing. That's because the build script is telling cargo to look for changes in a file that doesn't exist.
To fix this, I removed this 'includes' parameter from the protobuf compile call, as it is currently unnecessary and causes the problem.