blob: cc0280df7d06bfd965f2791a2fc088eb49545f8f [file] [log] [blame]
Serge Bazanskicbf1fa92021-07-02 17:28:50 +02001"""
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:rust.bzl",
14 "rust_binary",
15 "rust_library",
16 "rust_test",
17)
18
19package(default_visibility = [
20 # Public for visibility by "@raze__crate__version//" targets.
21 #
22 # Prefer access through "//third_party/rust/cargo", which limits external
23 # visibility to explicit Cargo.toml dependencies.
24 "//visibility:public",
25])
26
27licenses([
28 "notice", # MIT from expression "MIT OR Apache-2.0"
29])
30
31# Generated Targets
32# buildifier: disable=out-of-order-load
33# buildifier: disable=load-on-top
34load(
35 "@rules_rust//cargo:cargo_build_script.bzl",
36 "cargo_build_script",
37)
38
39cargo_build_script(
40 name = "getrandom_build_script",
41 srcs = glob(["**/*.rs"]),
42 build_script_env = {
43 },
44 crate_features = [
45 "std",
46 ],
47 crate_root = "build.rs",
48 data = glob(["**"]),
49 edition = "2018",
50 rustc_flags = [
51 "--cap-lints=allow",
52 ],
53 tags = [
54 "cargo-raze",
55 "manual",
56 ],
57 version = "0.1.16",
58 visibility = ["//visibility:private"],
59 deps = [
60 ] + selects.with_or({
61 # cfg(unix)
62 (
63 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
64 ): [
65 ],
66 "//conditions:default": [],
67 }),
68)
69
70# Unsupported target "mod" with type "bench" omitted
71
72rust_library(
73 name = "getrandom",
74 srcs = glob(["**/*.rs"]),
75 aliases = {
76 },
77 crate_features = [
78 "std",
79 ],
80 crate_root = "src/lib.rs",
81 crate_type = "lib",
82 data = [],
83 edition = "2018",
84 rustc_flags = [
85 "--cap-lints=allow",
86 ],
87 tags = [
88 "cargo-raze",
89 "manual",
90 ],
91 version = "0.1.16",
92 # buildifier: leave-alone
93 deps = [
94 ":getrandom_build_script",
95 "@raze__cfg_if__1_0_0//:cfg_if",
96 ] + selects.with_or({
97 # cfg(unix)
98 (
99 "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
100 ): [
101 "@raze__libc__0_2_97//:libc",
102 ],
103 "//conditions:default": [],
104 }),
105)
106
107# Unsupported target "common" with type "test" omitted