mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-27 01:11:38 +00:00
30 lines
626 B
Python
30 lines
626 B
Python
load("@rules_rust//crate_universe:defs.bzl", "crates_vendor")
|
|
|
|
crates_vendor(
|
|
name = "vendor",
|
|
cargo_lockfile = "//third-party:Cargo.lock",
|
|
generate_build_scripts = True,
|
|
manifests = ["//third-party:Cargo.toml"],
|
|
mode = "remote",
|
|
tags = ["manual"],
|
|
vendor_path = "bazel",
|
|
)
|
|
|
|
[
|
|
alias(
|
|
name = name,
|
|
actual = "//third-party/bazel:{}".format(name),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
for name in [
|
|
"cc",
|
|
"clap",
|
|
"codespan-reporting",
|
|
"once_cell",
|
|
"proc-macro2",
|
|
"quote",
|
|
"scratch",
|
|
"syn",
|
|
]
|
|
]
|