File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ def _compute_proto_source_path(file, source_root_attr):
74
74
return path
75
75
76
76
def _rust_proto_aspect_impl (target , ctx ):
77
- if not hasattr ( target , "proto" ) :
77
+ if ProtoInfo not in target :
78
78
return None
79
79
source_root = ctx .rule .attr .proto_source_root
80
80
if source_root and source_root [- 1 ] != "/" :
81
81
source_root += "/"
82
82
83
83
sources = [
84
84
_compute_proto_source_path (f , source_root )
85
- for f in target . proto .direct_sources
85
+ for f in target [ ProtoInfo ] .direct_sources
86
86
]
87
87
transitive_sources = [
88
88
f [RustProtoProvider ].transitive_proto_sources
@@ -195,7 +195,7 @@ rust_proto_library = rule(
195
195
One crate for each proto_library will be created with the corresponding stubs.
196
196
""" ,
197
197
mandatory = True ,
198
- providers = ["proto" ],
198
+ providers = [ProtoInfo ],
199
199
aspects = [_rust_proto_aspect ],
200
200
),
201
201
"rust_deps" : attr .label_list (
You can’t perform that action at this time.
0 commit comments