fork/rules_rust

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

David TolnayMake loads from @rules_rust//rust:defs.bzl come out on one line (#1753)a31490d9

rust-analyzer
2.3 KiB105 linesraw
1###############################################################################
2# @generated
3# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4# regenerate this file, run the following:
5#
6#     bazel run @//proto/3rdparty:crates_vendor
7###############################################################################
8
9load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
10load("@rules_rust//rust:defs.bzl", "rust_library")
11
12package(default_visibility = ["//visibility:public"])
13
14# licenses([
15#     "TODO",  # MIT/Apache-2.0
16# ])
17
18rust_library(
19    name = "winapi",
20    srcs = glob(["**/*.rs"]),
21    compile_data = glob(
22        include = ["**"],
23        exclude = [
24            "**/* *",
25            "BUILD",
26            "BUILD.bazel",
27            "WORKSPACE",
28            "WORKSPACE.bazel",
29        ],
30    ),
31    crate_features = [
32        "errhandlingapi",
33        "handleapi",
34        "minwindef",
35        "ntstatus",
36        "winbase",
37        "winerror",
38        "winnt",
39        "winsock2",
40        "ws2def",
41        "ws2ipdef",
42        "ws2tcpip",
43    ],
44    crate_root = "src/lib.rs",
45    edition = "2015",
46    rustc_flags = ["--cap-lints=allow"],
47    tags = [
48        "cargo-bazel",
49        "manual",
50        "noclippy",
51        "norustfmt",
52    ],
53    version = "0.3.9",
54    deps = [
55        "@rules_rust_proto__winapi-0.3.9//:build_script_build",
56    ],
57)
58
59cargo_build_script(
60    name = "winapi_build_script",
61    srcs = glob(["**/*.rs"]),
62    crate_features = [
63        "errhandlingapi",
64        "handleapi",
65        "minwindef",
66        "ntstatus",
67        "winbase",
68        "winerror",
69        "winnt",
70        "winsock2",
71        "ws2def",
72        "ws2ipdef",
73        "ws2tcpip",
74    ],
75    crate_name = "build_script_build",
76    crate_root = "build.rs",
77    data = glob(
78        include = ["**"],
79        exclude = [
80            "**/* *",
81            "BUILD",
82            "BUILD.bazel",
83            "WORKSPACE",
84            "WORKSPACE.bazel",
85        ],
86    ),
87    edition = "2015",
88    rustc_flags = [
89        "--cap-lints=allow",
90    ],
91    tags = [
92        "cargo-bazel",
93        "manual",
94        "noclippy",
95        "norustfmt",
96    ],
97    version = "0.3.9",
98    visibility = ["//visibility:private"],
99)
100
101alias(
102    name = "build_script_build",
103    actual = "winapi_build_script",
104    tags = ["manual"],
105)