fork/rules_rust

git clone https://git.julia.blue/fork/rules_rust

UebelAndreUpdated examples to use crate_universe (#1494)43b42884

0.9.0
847 B20 linesraw
1"""Dependencies for the `@rules_rust_examples//sys` package"""
2
3load("//sys/basic/3rdparty/crates:defs.bzl", basic_crate_repositories = "crate_repositories")
4load("//sys/complex/3rdparty/crates:defs.bzl", complex_crate_repositories = "crate_repositories")
5load("//third_party/openssl:openssl_repositories.bzl", "openssl_repositories")
6
7def sys_deps():
8    """This macro loads dependencies for the `sys` 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 avaialble in the workspace.
14    """
15
16    # Required by `//sys/complex`
17    openssl_repositories()
18
19    basic_crate_repositories()
20    complex_crate_repositories()