mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Update bazel Rust rules
This commit is contained in:
parent
a96213c600
commit
dd24719b97
4
BUILD
4
BUILD
@ -3,10 +3,12 @@ load("//tools/bazel:rust.bzl", "rust_binary", "rust_library")
|
||||
rust_library(
|
||||
name = "cxx",
|
||||
srcs = glob(["src/**/*.rs"]),
|
||||
proc_macro_deps = [
|
||||
":cxxbridge-macro",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":core-lib",
|
||||
":cxxbridge-macro",
|
||||
"//third-party:link-cplusplus",
|
||||
],
|
||||
)
|
||||
|
@ -2,10 +2,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
http_archive(
|
||||
name = "io_bazel_rules_rust",
|
||||
sha256 = "b83154a58f95618e06845b774b079000e0c39830e185db4c7bf46e79896cb3a1",
|
||||
strip_prefix = "rules_rust-0deef6dd8180cd3bc610878558bb26921b4e8de1",
|
||||
# Master branch as of 2020-03-07
|
||||
url = "https://github.com/bazelbuild/rules_rust/archive/0deef6dd8180cd3bc610878558bb26921b4e8de1.tar.gz",
|
||||
sha256 = "5ed804fcd10a506a5b8e9e59bc6b3b7f43bc30c87ce4670e6f78df43604894fd",
|
||||
strip_prefix = "rules_rust-fdf9655ba95616e0314b4e0ebab40bb0c5fe005c",
|
||||
# Master branch as of 2020-07-30
|
||||
url = "https://github.com/bazelbuild/rules_rust/archive/fdf9655ba95616e0314b4e0ebab40bb0c5fe005c.tar.gz",
|
||||
)
|
||||
|
||||
http_archive(
|
||||
|
8
third-party/BUILD
vendored
8
third-party/BUILD
vendored
@ -65,9 +65,11 @@ rust_library(
|
||||
rust_library(
|
||||
name = "proc-macro-error",
|
||||
srcs = glob(["vendor/proc-macro-error-1.0.3/src/**"]),
|
||||
proc_macro_deps = [
|
||||
":proc-macro-error-attr",
|
||||
],
|
||||
rustc_flags = ["--cfg=use_fallback"],
|
||||
deps = [
|
||||
":proc-macro-error-attr",
|
||||
":proc-macro2",
|
||||
":quote",
|
||||
":syn",
|
||||
@ -113,11 +115,13 @@ rust_library(
|
||||
rust_library(
|
||||
name = "structopt",
|
||||
srcs = glob(["vendor/structopt-0.3.15/src/**"]),
|
||||
proc_macro_deps = [
|
||||
":structopt-derive",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":clap",
|
||||
":lazy_static",
|
||||
":structopt-derive",
|
||||
],
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user