• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""This module loads dependencies for the `basic` crate examples"""
2
3# rename the default name "crate_repositories" in case you import multiple vendored folders.
4load("//basic/3rdparty/crates:defs.bzl", basic_crate_repositories = "crate_repositories")
5
6def sys_deps():
7    """
8    This macro loads dependencies for the `basic` crate examples
9
10    Commonly `*-sys` crates are built on top of some existing library and
11    will have a number of dependencies. The examples here use
12    [crate_universe](https://bazelbuild.github.io/rules_rust/crate_universe.html)
13    to gather these dependencies and make them available in the workspace.
14    """
15
16    # Load the vendored dependencies
17    basic_crate_repositories()
18