Created
April 26, 2019 23:06
-
-
Save mstg/6991d07372dabf4aeb64a5c664b879a4 to your computer and use it in GitHub Desktop.
Rust cc invalid BUILD file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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