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

Declare crate for generated proto Rust code #4701

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

ernoc
Copy link
Contributor

@ernoc ernoc commented Jan 22, 2024

Attempt 2.

Use the same approach as we use in internal repo: build generated proto Rust code in its own package (crate).

#4565

Copy link
Collaborator

@tiziano88 tiziano88 left a comment

Choose a reason for hiding this comment

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

nice cleanup

Copy link
Collaborator

@conradgrobler conradgrobler left a comment

Choose a reason for hiding this comment

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

Thanks.

@@ -20,9 +20,6 @@
extern crate alloc;

use core::assert_matches::assert_matches;
use std::sync::Arc;

Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like this uses an older version of formatting. Since #4648 it rustfmt should automatically group use statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rustfmt is actively adding a space there. I think it's adding a space dividing external imports from workspace imports.

@ernoc ernoc marked this pull request as ready for review January 23, 2024 09:29
@ernoc ernoc force-pushed the proto-crate-2 branch 3 times, most recently from c7a16a4 to 473438b Compare January 23, 2024 14:36
@ernoc ernoc added the kokoro:run Runs new PR on Kokoro. Used for PRs by external users (dependabot), which do not run automatically label Jan 23, 2024
@kokoro-team kokoro-team removed the kokoro:run Runs new PR on Kokoro. Used for PRs by external users (dependabot), which do not run automatically label Jan 23, 2024
@ernoc ernoc merged commit ee52d98 into project-oak:main Jan 24, 2024
17 checks passed
@ipetr0v
Copy link
Contributor

ipetr0v commented Jan 26, 2024

I think we could drop the _rust suffix from the crate name, since it's already a Rust crate.

k-naliuka pushed a commit to k-naliuka/oak that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants