-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing modules to various workspaces
- Loading branch information
1 parent
f329c0c
commit 39317a2
Showing
10 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""Bzlmod module extensions""" | ||
|
||
load("//basic/3rdparty/crates:crates.bzl", basic_crate_repositories = "crate_repositories") | ||
|
||
def _rust_example_impl(module_ctx): | ||
# This should contain the subset of WORKSPACE.bazel that defines | ||
# repositories. | ||
direct_deps = [] | ||
|
||
direct_deps.extend(basic_crate_repositories()) | ||
|
||
# is_dev_dep is ignored here. It's not relevant for internal_deps, as dev | ||
# dependencies are only relevant for module extensions that can be used | ||
# by other MODULES. | ||
return module_ctx.extension_metadata( | ||
root_module_direct_deps = [repo.repo for repo in direct_deps], | ||
root_module_direct_dev_deps = [], | ||
) | ||
|
||
rust_example = module_extension( | ||
doc = "Dependencies for the rules_rust examples.", | ||
implementation = _rust_example_impl, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters