fork/rules_rust

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

UebelAndreUpdated the ios_build example to use `crates_vendor` (#1778)e96aad9a

rust-analyzer
2.1 KiB94 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 @//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 = "zstd_sys",
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        "legacy",
33        "std",
34        "zdict_builder",
35    ],
36    crate_root = "src/lib.rs",
37    edition = "2018",
38    rustc_flags = ["--cap-lints=allow"],
39    tags = [
40        "cargo-bazel",
41        "manual",
42        "noclippy",
43        "norustfmt",
44    ],
45    version = "2.0.1+zstd.1.5.2",
46    deps = [
47        "@ios_build__libc-0.2.134//:libc",
48        "@ios_build__zstd-sys-2.0.1-zstd.1.5.2//:build_script_build",
49    ],
50)
51
52cargo_build_script(
53    name = "zstd-sys_build_script",
54    srcs = glob(["**/*.rs"]),
55    crate_features = [
56        "legacy",
57        "std",
58        "zdict_builder",
59    ],
60    crate_name = "build_script_build",
61    crate_root = "build.rs",
62    data = glob(
63        include = ["**"],
64        exclude = [
65            "**/* *",
66            "BUILD",
67            "BUILD.bazel",
68            "WORKSPACE",
69            "WORKSPACE.bazel",
70        ],
71    ),
72    edition = "2018",
73    links = "zstd",
74    rustc_flags = [
75        "--cap-lints=allow",
76    ],
77    tags = [
78        "cargo-bazel",
79        "manual",
80        "noclippy",
81        "norustfmt",
82    ],
83    version = "2.0.1+zstd.1.5.2",
84    visibility = ["//visibility:private"],
85    deps = [
86        "@ios_build__cc-1.0.73//:cc",
87    ],
88)
89
90alias(
91    name = "build_script_build",
92    actual = "zstd-sys_build_script",
93    tags = ["manual"],
94)