Page MenuHomePhabricator

[Services] Cleanup commtest/build.rs
ClosedPublic

Authored by jon on Sep 15 2022, 3:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 6:18 PM
Unknown Object (File)
Sat, Nov 9, 7:22 AM
Unknown Object (File)
Oct 20 2024, 8:22 PM
Unknown Object (File)
Oct 10 2024, 4:16 PM
Unknown Object (File)
Oct 10 2024, 4:16 PM
Unknown Object (File)
Oct 10 2024, 4:15 PM
Unknown Object (File)
Oct 10 2024, 4:11 PM
Unknown Object (File)
Oct 9 2024, 2:26 AM

Details

Summary

Apply feedback from https://phab.comm.dev/D5102?id=16560#inline-33198.

Also:

  • Groom the file to be more idiomatic rust.
  • Ask cargo to rebuid if the protobuf files change.

D5102 was "how little do I need to do to make it build". Where as this revision
is to be a more holistic, "how would I write this file".

Test Plan
cd services/commtest
cargo build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek added a reviewer: marcin.
atul removed a reviewer: atul. atul added 1 blocking reviewer(s): varun.Sep 21 2022, 5:28 AM

accepting with one comment

services/commtest/build.rs
12 ↗(On Diff #16716)

should we warn or something here if there's a non .proto file in the protos directory?

This revision is now accepted and ready to land.Sep 21 2022, 2:24 PM
jon added inline comments.
services/commtest/build.rs
12 ↗(On Diff #16716)

No, we just want to pass the appropriate files to tonic. It's more of a validation pass than anything.

jon added inline comments.
services/commtest/build.rs
12 ↗(On Diff #16716)

Currently we have a CMakeLists.txt and a _generated directory in there. So some filtering is expected

This revision was automatically updated to reflect the committed changes.