@@ -81,7 +81,8 @@ function isGeneratedFileFrom(parts: NormalizedPath): boolean {
8181 // `.pb.cc` / `.pb.h`, the Swift plugin emits `.pb.swift`, the Dart plugin emits `.pb.dart`,
8282 // the Kotlin plugin emits `.pb.kt`, the Java plugin emits `.pb.java`, the C# plugin emits `.pb.cs`, the Rust plugin emits `.pb.rs`,
8383 // the Elixir plugin emits `.pb.ex`, the Erlang gpb plugin emits `.pb.erl` / `.pb.hrl`, the Crystal
84- // plugin emits `.pb.cr`, the Haskell plugin emits `.pb.hs`, the Scala plugin emits `.pb.scala`, and the Objective-C plugin emits
84+ // plugin emits `.pb.cr`, the Haskell plugin emits `.pb.hs`, the Scala plugin emits `.pb.scala`, the Rust
85+ // plugin emits `.pb.rs` (and prost/tonic also emit underscore `*_pb.rs` / `*_grpc_pb.rs` siblings), and the Objective-C plugin emits
8586 // `.pbobjc.{h,m}` plus gRPC `.pbrpc.{h,m}` service stubs. Swift gRPC emits sibling `.grpc.swift`
8687 // service stubs; grpc-kotlin emits sibling `*GrpcKt.kt` coroutine service stubs; grpc-java emits
8788 // sibling `*Grpc.java` service stubs; grpc-dotnet emits sibling `*Grpc.cs` service stubs; the Dart
@@ -111,6 +112,9 @@ function isGeneratedFileFrom(parts: NormalizedPath): boolean {
111112 / _ p b \. l u a $ / . test ( norm ) ||
112113 // Perl protobuf: message stubs are `*_pb.pm`.
113114 / _ p b \. p m $ / . test ( norm ) ||
115+ // Rust prost/tonic underscore stubs: `*_pb.rs` message output; tonic gRPC emits sibling `*_grpc_pb.rs`.
116+ / _ p b \. r s $ / . test ( norm ) ||
117+ / _ g r p c _ p b \. r s $ / . test ( norm ) ||
114118 // JavaScript/TypeScript grpc-node protobuf: message stubs are `*_pb.{js,ts,d.ts}`; gRPC emits
115119 // sibling `*_grpc_pb.{js,ts,d.ts}` service stubs (underscore form, not `.pb.js`).
116120 / _ p b \. ( j s | t s ) $ / . test ( norm ) ||
0 commit comments