Commit 20d9941 1 parent a39db50 commit 20d9941 Copy full SHA for 20d9941
File tree 1 file changed +11
-3
lines changed
extensions/scarb-doc/src/metadata
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -144,16 +144,24 @@ fn get_crate_settings_for_component(
144
144
. as_ref ( )
145
145
. expect ( "dependencies are expected to exist" )
146
146
. iter ( )
147
- . map ( |CompilationUnitComponentDependencyMetadata { id, .. } | {
147
+ . filter_map ( |CompilationUnitComponentDependencyMetadata { id, .. } | {
148
+ // Skip the plugin dependencies.
149
+ if unit. cairo_plugins
150
+ . iter ( )
151
+ . any ( |plugin_metadata| plugin_metadata. component_dependency_id . as_ref ( ) == Some ( id) )
152
+ {
153
+ return None
154
+ }
155
+
148
156
let dependency_component = unit. components . iter ( )
149
157
. find ( |component| component. id . as_ref ( ) . expect ( "component is expected to have an id" ) == id)
150
158
. expect ( "dependency of a component is guaranteed to exist in compilation unit components" ) ;
151
- (
159
+ Some ( (
152
160
dependency_component. name . clone ( ) ,
153
161
DependencySettings {
154
162
discriminator : dependency_component. discriminator . as_ref ( ) . map ( ToSmolStr :: to_smolstr)
155
163
} ,
156
- )
164
+ ) )
157
165
} )
158
166
. collect ( ) ;
159
167
You can’t perform that action at this time.
0 commit comments