When working with medea-jason project, sometimes when you run something like cargo check, files related to the Control API gRPC are regenerated. And some files can be deleted and this can be accidentally committed to the branch. This changes are not correct, because this files should live in the git index, but because of the feature flags, they're regenerated incorrectly.
Solution
We can just add server and client features to the default set of features of medea-control-api-proto crate. So when we run cargo check without any arguments, it will compile with this features. This will not remove required files. This fix works, but it needs to be checked, because it can cause some unexpected behaviour.
Synopsis
When working with
medea-jason
project, sometimes when you run something likecargo check
, files related to the Control API gRPC are regenerated. And some files can be deleted and this can be accidentally committed to the branch. This changes are not correct, because this files should live in the git index, but because of the feature flags, they're regenerated incorrectly.Solution
We can just add
server
andclient
features to the default set of features ofmedea-control-api-proto
crate. So when we runcargo check
without any arguments, it will compile with this features. This will not remove required files. This fix works, but it needs to be checked, because it can cause some unexpected behaviour.Checklist
k::
labels applied