Skip to content

Instantly share code, notes, and snippets.

@mstg
Created April 26, 2019 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstg/6991d07372dabf4aeb64a5c664b879a4 to your computer and use it in GitHub Desktop.
Save mstg/6991d07372dabf4aeb64a5c664b879a4 to your computer and use it in GitHub Desktop.
Rust cc invalid BUILD file
"""
cargo-raze crate build file.
DO NOT EDIT! Replaced on runs of cargo-raze
"""
package(default_visibility = [
# Public for visibility by "@raze__crate__version//" targets.
#
# Prefer access through "//src/bycrates.io/cargo", which limits external
# visibility to explicit Cargo.toml dependencies.
"//visibility:public",
])
licenses([
"notice", # "MIT,Apache-2.0"
])
load(
"@io_bazel_rules_rust//rust:rust.bzl",
"rust_library",
"rust_binary",
"rust_test",
)
rust_library(
name = "cc",
crate_root = "src/lib.rs",
crate_type = "lib",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
],
rustc_flags = [
"--cap-lints=allow",
],
version = "1.0.35",
crate_features = [
],
)
# Unsupported target "cc_env" with type "test" omittedrust_binary(
# Prefix bin name to disambiguate from (probable) collision with lib name
# N.B.: The exact form of this is subject to change.
name = "cargo_bin_gcc_shim",
crate_root = "src/bin/gcc-shim.rs",
edition = "2015",
srcs = glob(["**/*.rs"]),
deps = [
# Binaries get an implicit dependency on their crate's lib
":cc",
],
rustc_flags = [
"--cap-lints=allow",
],
version = "1.0.35",
crate_features = [
],
)
# Unsupported target "test" with type "test" omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment