blob: b3381fcb7707dbe681f85b4fc9c555b27cb97948 [file] [log] [blame]
Brian Silverman547eda02022-05-19 23:14:08 -07001"""
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 "//third_party/cargo", 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
34# Unsupported target "build-script-build" with type "custom-build" omitted
35
36rust_library(
37 name = "cxx",
38 srcs = glob(["**/*.rs"]),
39 crate_features = [
40 "alloc",
41 "default",
42 "std",
43 ],
44 crate_root = "src/lib.rs",
45 data = [],
46 edition = "2018",
47 proc_macro_deps = [
Brian Silvermana7ba2512022-12-19 19:13:52 -080048 "@raze__cxxbridge_macro__1_0_85//:cxxbridge_macro",
Brian Silverman547eda02022-05-19 23:14:08 -070049 ],
50 rustc_flags = [
51 "--cap-lints=allow",
52 ],
53 tags = [
54 "cargo-raze",
55 "crate-name=cxx",
56 "manual",
57 ],
Brian Silvermana7ba2512022-12-19 19:13:52 -080058 version = "1.0.85",
Brian Silverman547eda02022-05-19 23:14:08 -070059 # buildifier: leave-alone
60 deps = [
Brian Silvermana7ba2512022-12-19 19:13:52 -080061 "@raze__link_cplusplus__1_0_8//:link_cplusplus",
Brian Silverman547eda02022-05-19 23:14:08 -070062 ],
63)
64
65# Unsupported target "compiletest" with type "test" omitted
66
67# Unsupported target "cxx_gen" with type "test" omitted
68
69# Unsupported target "cxx_string" with type "test" omitted
70
71# Unsupported target "test" with type "test" omitted
72
73# Unsupported target "unique_ptr" with type "test" omitted
74
75# Additional content from third_party/cargo/cxx/include.BUILD.bazel
76# This file is included in the BUILD for the cxx crate, to export its header
77# file for C++ code to depend on.
78cc_library(
79 name = "cxx_cc",
80 visibility = ["//visibility:public"],
81 hdrs = ["include/cxx.h"],
82 srcs = ["src/cxx.cc"],
83 includes = ["include"],
Brian Silvermana8ad1af2022-07-23 16:05:12 -070084 target_compatible_with = ["@//tools/platforms/rust:has_support"],
Brian Silverman547eda02022-05-19 23:14:08 -070085)