fork/rules_rust

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

UebelAndreImplement rules archive release artifact in github action. (#1501)76360dd3

0.11.0
1.3 KiB52 linesraw
1load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2load("//crate_universe:defs.bzl", "crate", "crates_vendor")
3
4crates_vendor(
5    name = "crates_vendor",
6    annotations = {
7        "bindgen": [crate.annotation(
8            gen_build_script = True,
9        )],
10        "clang-sys": [crate.annotation(
11            gen_build_script = True,
12        )],
13        "indexmap": [crate.annotation(
14            gen_build_script = True,
15        )],
16        "libloading": [crate.annotation(
17            gen_build_script = True,
18        )],
19        "log": [crate.annotation(
20            rustc_flags = ["--cfg=atomic_cas"],
21        )],
22    },
23    cargo_lockfile = "Cargo.Bazel.lock",
24    generate_build_scripts = False,
25    mode = "remote",
26    packages = {
27        "bindgen": crate.spec(
28            version = "0.60.1",
29        ),
30        "libloading": crate.spec(
31            version = "0.7.3",
32        ),
33    },
34    repository_name = "rules_rust_bindgen",
35    tags = ["manual"],
36)
37
38alias(
39    name = "bindgen",
40    actual = "//bindgen/3rdparty/crates:bindgen__bindgen",
41    tags = ["manual"],
42    visibility = ["//visibility:public"],
43)
44
45bzl_library(
46    name = "bzl_lib",
47    srcs = glob(["**/*.bzl"]) + [
48        "//bindgen/3rdparty/crates:defs.bzl",
49        "//bindgen/3rdparty/crates:crates.bzl",
50    ],
51    visibility = ["//bindgen:__pkg__"],
52)