mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 23:29:50 +00:00
31 lines
781 B
Python
31 lines
781 B
Python
workspace(name = "cxx.rs")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "rules_rust",
|
|
sha256 = "29fee78077bd8c6477bc895a47e6c759f92df0735ed60587e1da7b51f53d26eb",
|
|
strip_prefix = "rules_rust-23a4631cad819003642b1a148e458fe4ed2c54e1",
|
|
urls = [
|
|
# Main branch as of 2021-12-07
|
|
"https://github.com/bazelbuild/rules_rust/archive/23a4631cad819003642b1a148e458fe4ed2c54e1.tar.gz",
|
|
],
|
|
)
|
|
|
|
load("@rules_rust//rust:repositories.bzl", "rust_repositories")
|
|
|
|
RUST_VERSION = "1.57.0"
|
|
|
|
rust_repositories(
|
|
edition = "2018",
|
|
version = RUST_VERSION,
|
|
)
|
|
|
|
load("//tools/bazel:vendor.bzl", "vendor")
|
|
|
|
vendor(
|
|
name = "third-party",
|
|
lockfile = "//third-party:Cargo.lock",
|
|
cargo_version = RUST_VERSION,
|
|
)
|