aboutsummaryrefslogtreecommitdiff
path: root/third-party/bazel/BUILD.winapi-0.3.9.bazel
blob: 7af60b17bf57e064fb5697dccebcddbb6b35bb8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
#     bazel run @//third-party:vendor
###############################################################################

load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

# licenses([
#     "TODO",  # MIT/Apache-2.0
# ])

rust_library(
    name = "winapi",
    srcs = glob(["**/*.rs"]),
    compile_data = glob(
        include = ["**"],
        exclude = [
            "**/* *",
            "BUILD",
            "BUILD.bazel",
            "WORKSPACE",
            "WORKSPACE.bazel",
        ],
    ),
    crate_features = [
        "consoleapi",
        "errhandlingapi",
        "fileapi",
        "minwindef",
        "processenv",
        "std",
        "winbase",
        "wincon",
        "winerror",
        "winnt",
    ],
    crate_root = "src/lib.rs",
    edition = "2015",
    rustc_flags = ["--cap-lints=allow"],
    tags = [
        "cargo-bazel",
        "crate-name=winapi",
        "manual",
        "noclippy",
        "norustfmt",
    ],
    version = "0.3.9",
    deps = [
        "@vendor__winapi-0.3.9//:build_script_build",
    ],
)

cargo_build_script(
    name = "winapi_build_script",
    srcs = glob(["**/*.rs"]),
    crate_features = [
        "consoleapi",
        "errhandlingapi",
        "fileapi",
        "minwindef",
        "processenv",
        "std",
        "winbase",
        "wincon",
        "winerror",
        "winnt",
    ],
    crate_name = "build_script_build",
    crate_root = "build.rs",
    data = glob(
        include = ["**"],
        exclude = [
            "**/* *",
            "BUILD",
            "BUILD.bazel",
            "WORKSPACE",
            "WORKSPACE.bazel",
        ],
    ),
    edition = "2015",
    rustc_flags = [
        "--cap-lints=allow",
    ],
    tags = [
        "cargo-bazel",
        "crate-name=winapi",
        "manual",
        "noclippy",
        "norustfmt",
    ],
    version = "0.3.9",
    visibility = ["//visibility:private"],
)

alias(
    name = "build_script_build",
    actual = "winapi_build_script",
    tags = ["manual"],
)