third_party_rust_cxx/demo/BUCK
徐未来 b110613bee cxx 1.0.91升级至1.0.97
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 19:59:25 +08:00

36 lines
689 B
Python

load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")
rust_binary(
name = "demo",
srcs = glob(["src/**/*.rs"]),
edition = "2018",
deps = [
":blobstore-sys",
":bridge",
"//:cxx",
],
)
rust_cxx_bridge(
name = "bridge",
src = "src/main.rs",
deps = [":blobstore-include"],
)
cxx_library(
name = "blobstore-sys",
srcs = ["src/blobstore.cc"],
compiler_flags = ["-std=c++14"],
preferred_linkage = "static",
deps = [
":blobstore-include",
":bridge/include",
],
)
cxx_library(
name = "blobstore-include",
exported_deps = ["//:core"],
exported_headers = ["include/blobstore.h"],
)