Skip to content

Commit c5c58e1

Browse files
bingyanglinmuXxer
andcommitted
feat(gRPC): field masking and generation (#9128)
# Description of change - Ported field masking mechanism, including - The `field` module - The `iota-proto-build` crate to generate fields, so we can use `FieldMaskUtil::validate` to verify the client-requested field paths. - Change `EventID` to `EventId` to meet `prost`'s naming convention, so the generated Rust code from `protobuf` can be used without additional conversion (like change `ID` to `Id`). ## Links to any relevant issues Part of #8688 ## How the change has been tested - [x] Basic tests (linting, compilation, formatting, unit/integration tests) - [ ] Patch-specific tests (correctness, functionality coverage) - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have checked that new and existing unit tests pass locally with my changes --------- Co-authored-by: muXxer <git@muxxer.de>
1 parent f6aaba4 commit c5c58e1

23 files changed

+3219
-145
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
/crates/iota-package-management/ @iotaledger/vm-language
6161
/crates/iota-package-resolver/ @iotaledger/vm-language
6262
/crates/iota-proc-macros/ @iotaledger/dev-tools
63+
/crates/iota-proto-build/ @iotaledger/node
6364
/crates/iota-protocol-config/ @iotaledger/node @iotaledger/sc-platform
6465
/crates/iota-protocol-config-macros/ @iotaledger/node @iotaledger/sc-platform
6566
/crates/iota-proxy/ @iotaledger/node

.github/actions/diffs/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ runs:
6868
- "crates/iota-grpc-client/**"
6969
- "crates/iota-grpc-server/**"
7070
- "crates/iota-grpc-types/**"
71+
- "crates/iota-proto-build/**"
7172
- ".github/workflows/hierarchy.yml"
7273
- ".github/workflows/_e2e.yml"
7374
- "Cargo.toml"

.github/crates-filters.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ iota-package-resolver:
122122
- "crates/iota-package-resolver/**"
123123
iota-proc-macros:
124124
- "crates/iota-proc-macros/**"
125+
iota-proto-build:
126+
- "crates/iota-proto-build/**"
125127
iota-protocol-config:
126128
- "crates/iota-protocol-config/**"
127129
iota-protocol-config-macros:

0 commit comments

Comments
 (0)