fork/rules_rust

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

UebelAndreRegenerated `cargo-raze` outputs with v0.15.0 (#1184)5e6ad9f6

0.6.0
2.4 KiB109 linesraw
1"""
2@generated
3cargo-raze crate build file.
4
5DO NOT EDIT! Replaced on runs of cargo-raze
6"""
7
8# buildifier: disable=load
9load("@bazel_skylib//lib:selects.bzl", "selects")
10
11# buildifier: disable=load
12load(
13    "@rules_rust//rust:defs.bzl",
14    "rust_binary",
15    "rust_library",
16    "rust_proc_macro",
17    "rust_test",
18)
19
20package(default_visibility = [
21    # Public for visibility by "@raze__crate__version//" targets.
22    #
23    # Prefer access through "//sys/complex/raze", which limits external
24    # visibility to explicit Cargo.toml dependencies.
25    "//visibility:public",
26])
27
28licenses([
29    "notice",  # MIT from expression "MIT OR Apache-2.0"
30])
31
32# Generated Targets
33# buildifier: disable=out-of-order-load
34# buildifier: disable=load-on-top
35load(
36    "@rules_rust//cargo:cargo_build_script.bzl",
37    "cargo_build_script",
38)
39
40cargo_build_script(
41    name = "libz_sys_build_script",
42    srcs = glob(["**/*.rs"]),
43    build_script_env = {
44    },
45    crate_features = [
46        "libc",
47    ],
48    crate_root = "build.rs",
49    data = glob(["**"]),
50    edition = "2015",
51    links = "z",
52    rustc_flags = [
53        "--cap-lints=allow",
54    ],
55    tags = [
56        "cargo-raze",
57        "manual",
58    ],
59    version = "1.1.3",
60    visibility = ["//visibility:private"],
61    deps = [
62        "@complex_sys__cc__1_0_69//:cc",
63        "@complex_sys__pkg_config__0_3_19//:pkg_config",
64    ] + selects.with_or({
65        # cfg(target_env = "msvc")
66        (
67            "@rules_rust//rust/platform:i686-pc-windows-msvc",
68            "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
69        ): [
70            "@complex_sys__vcpkg__0_2_15//:vcpkg",
71        ],
72        "//conditions:default": [],
73    }),
74)
75
76rust_library(
77    name = "libz_sys",
78    srcs = glob(["**/*.rs"]),
79    aliases = {
80    },
81    crate_features = [
82        "libc",
83    ],
84    crate_root = "src/lib.rs",
85    data = [],
86    edition = "2015",
87    rustc_flags = [
88        "--cap-lints=allow",
89    ],
90    tags = [
91        "cargo-raze",
92        "crate-name=libz-sys",
93        "manual",
94    ],
95    version = "1.1.3",
96    # buildifier: leave-alone
97    deps = [
98        ":libz_sys_build_script",
99        "@complex_sys__libc__0_2_98//:libc",
100    ] + selects.with_or({
101        # cfg(target_env = "msvc")
102        (
103            "@rules_rust//rust/platform:i686-pc-windows-msvc",
104            "@rules_rust//rust/platform:x86_64-pc-windows-msvc",
105        ): [
106        ],
107        "//conditions:default": [],
108    }),
109)