Page MenuHomePhabricator

[native] expose module with generated tonic client code
ClosedPublic

Authored by varun on Aug 1 2022, 2:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:29 PM
Unknown Object (File)
Mon, Dec 9, 6:31 AM
Unknown Object (File)
Nov 18 2024, 4:39 AM
Unknown Object (File)
Nov 18 2024, 3:56 AM
Unknown Object (File)
Nov 18 2024, 1:51 AM
Unknown Object (File)
Nov 2 2024, 4:19 AM
Unknown Object (File)
Oct 18 2024, 4:45 PM
Unknown Object (File)
Oct 11 2024, 9:17 PM

Details

Summary

the build.rs script generates rust code from the identity.proto file. we then use the include_proto macro to expose the generated code as a module in our library

Test Plan

cargo build

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Aug 1 2022, 2:31 PM
tomek requested changes to this revision.Aug 2 2022, 2:32 AM

I'm not exactly sure how we handle .proto files in other services, but we should be consistent. Could you check what is the approach to generating source code from proto files? (if we do that during build time, or generate them by hand, before the build process) Also, if the good practices suggest that we should do that during build process, we might want to take this approach in all the places.

This revision now requires changes to proceed.Aug 2 2022, 2:32 AM
ashoat added a subscriber: jon.

@jon is the expert on proto generation in native. More context in ENG-777... basically we don't have a way to generate these during build time on iOS yet (tracked in ENG-1529), so for now we check in the .proto files to the repo.

varun requested review of this revision.Aug 2 2022, 8:02 AM

This is exactly how we handle protos in the Identity service and the commtest package

This revision is now accepted and ready to land.Aug 2 2022, 8:35 AM