blob: b7b23e5507c7324e917bebe6a38abda383c17ebf [file] [log] [blame]
load(
"@io_bazel_rules_rust//rust:rust.bzl",
_rust_binary = "rust_binary",
_rust_library = "rust_library",
_rust_test = "rust_test",
)
load("@third-party//:vendor.bzl", "vendored")
def third_party_glob(include):
return vendored and native.glob(include)
def rust_binary(edition = "2018", **kwargs):
_rust_binary(edition = edition, **kwargs)
def third_party_rust_binary(rustc_flags = [], **kwargs):
rustc_flags = rustc_flags + ["--cap-lints=allow"]
rust_binary(rustc_flags = rustc_flags, **kwargs)
def rust_library(edition = "2018", **kwargs):
_rust_library(edition = edition, **kwargs)
def third_party_rust_library(rustc_flags = [], **kwargs):
rustc_flags = rustc_flags + ["--cap-lints=allow"]
rust_library(rustc_flags = rustc_flags, **kwargs)
def rust_test(edition = "2018", **kwargs):
_rust_test(edition = edition, **kwargs)