Skip to content

Commit

Permalink
[metalos][macros] rely on antlir to normalize rust deps
Browse files Browse the repository at this point in the history
Summary:
Rely on antlir macros to normalize rust deps instead of maintaining the same
logic in the metalos macros.

Test Plan:
```
❯ buck targets fbcode//antlir/... fbcode//metalos/...
...

❯ arc rust-check fbcode//antlir/... fbcode//metalos/...
```

Reviewed By: sergeyfd

Differential Revision: D61400481

fbshipit-source-id: 06afc848c96d43aaf186f9aae5ecdbda544f26e0
  • Loading branch information
vmagro authored and facebook-github-bot committed Oct 30, 2024
1 parent 78b27a2 commit e9d8aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antlir/bzl/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _rust_common(rule, **kwargs):
deps = selects.apply(kwargs.pop("deps", []), lambda deps: [_normalize_rust_dep(d) for d in deps])
named_deps = selects.apply(kwargs.pop("named_deps", {}), lambda named_deps: {
key: _normalize_rust_dep(_ensure_dep_is_public(d))
for key, d in named_deps.items()
for key, d in (named_deps or {}).items()
})
rule(deps = deps, named_deps = named_deps, **kwargs)

Expand Down

0 comments on commit e9d8aef

Please sign in to comment.