Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 1 | """ |
| 2 | @generated |
| 3 | cargo-raze crate build file. |
| 4 | |
| 5 | DO NOT EDIT! Replaced on runs of cargo-raze |
| 6 | """ |
| 7 | |
| 8 | # buildifier: disable=load |
| 9 | load("@bazel_skylib//lib:selects.bzl", "selects") |
| 10 | |
| 11 | # buildifier: disable=load |
| 12 | load( |
| 13 | "@rules_rust//rust:defs.bzl", |
| 14 | "rust_binary", |
| 15 | "rust_library", |
| 16 | "rust_proc_macro", |
| 17 | "rust_test", |
| 18 | ) |
| 19 | |
| 20 | package(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 | |
| 28 | licenses([ |
| 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 | |
| 36 | rust_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 Silverman | a7ba251 | 2022-12-19 19:13:52 -0800 | [diff] [blame] | 48 | "@raze__cxxbridge_macro__1_0_85//:cxxbridge_macro", |
Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 49 | ], |
| 50 | rustc_flags = [ |
| 51 | "--cap-lints=allow", |
| 52 | ], |
| 53 | tags = [ |
| 54 | "cargo-raze", |
| 55 | "crate-name=cxx", |
| 56 | "manual", |
| 57 | ], |
Brian Silverman | a7ba251 | 2022-12-19 19:13:52 -0800 | [diff] [blame] | 58 | version = "1.0.85", |
Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 59 | # buildifier: leave-alone |
| 60 | deps = [ |
Brian Silverman | a7ba251 | 2022-12-19 19:13:52 -0800 | [diff] [blame] | 61 | "@raze__link_cplusplus__1_0_8//:link_cplusplus", |
Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 62 | ], |
| 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. |
| 78 | cc_library( |
| 79 | name = "cxx_cc", |
| 80 | visibility = ["//visibility:public"], |
| 81 | hdrs = ["include/cxx.h"], |
| 82 | srcs = ["src/cxx.cc"], |
| 83 | includes = ["include"], |
Brian Silverman | a8ad1af | 2022-07-23 16:05:12 -0700 | [diff] [blame] | 84 | target_compatible_with = ["@//tools/platforms/rust:has_support"], |
Brian Silverman | 547eda0 | 2022-05-19 23:14:08 -0700 | [diff] [blame] | 85 | ) |