• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")
2
3rust_binary(
4    name = "demo",
5    srcs = glob(["src/**/*.rs"]),
6    edition = "2018",
7    deps = [
8        ":blobstore-sys",
9        ":bridge",
10        "//:cxx",
11    ],
12)
13
14rust_cxx_bridge(
15    name = "bridge",
16    src = "src/main.rs",
17    deps = [":blobstore-include"],
18)
19
20cxx_library(
21    name = "blobstore-sys",
22    srcs = ["src/blobstore.cc"],
23    compiler_flags = ["-std=c++14"],
24    deps = [
25        ":blobstore-include",
26        ":bridge/include",
27    ],
28)
29
30cxx_library(
31    name = "blobstore-include",
32    exported_deps = ["//:core"],
33    exported_headers = ["include/blobstore.h"],
34)
35