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