Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate common messages #37

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

TheButlah
Copy link
Collaborator

@TheButlah TheButlah commented Oct 17, 2024

Previously the way we were compiling our protos resulted in duplicated rust structs for all messages in the common file.

I've reworked everything to use much more sensible file names, shorter module names, and most importantly, to unify the common types.

Screenshot 2024-10-17 at 02 41 05

@TheButlah TheButlah requested a review from fouge as a code owner October 17, 2024 04:51
@TheButlah TheButlah force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch 2 times, most recently from d7deafa to 281c8d1 Compare October 17, 2024 05:40
@TheButlah TheButlah force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch from 281c8d1 to c439077 Compare October 17, 2024 05:54
Copy link
Collaborator

@fouge fouge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

way nicer that it used to be!

messages/common.proto Outdated Show resolved Hide resolved
@TheButlah TheButlah force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch 2 times, most recently from ff9f0d7 to 9a11d83 Compare October 17, 2024 19:40
@TheButlah TheButlah force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch from 9a11d83 to 8230d5f Compare October 17, 2024 19:41
@fouge fouge self-requested a review October 18, 2024 12:30
Copy link
Collaborator

@fouge fouge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested in mcu firmware and works well.

src/generated.rs Outdated Show resolved Hide resolved
@fouge fouge force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch from 823cfc3 to bd214e8 Compare October 18, 2024 13:27
@fouge fouge force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch from bd214e8 to 870a487 Compare October 18, 2024 13:30
@TheButlah TheButlah requested a review from fouge October 18, 2024 16:30
@TheButlah TheButlah enabled auto-merge (squash) October 18, 2024 16:30
to make generation from Makefile in private repo works
@fouge fouge force-pushed the ryanbutler-orbp-294-make-common-protobuf-messages-their-own-de-duplicated branch from a3655d4 to ba1d72c Compare October 18, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants