aboutsummaryrefslogtreecommitdiff
path: root/demo/BUCK
blob: 5a028110a87a57dff93b14c5e67135712ef4dabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load("//tools/buck:rust_cxx_bridge.bzl", "rust_cxx_bridge")

rust_binary(
    name = "demo",
    srcs = glob(["src/**/*.rs"]),
    edition = "2021",
    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"],
    preferred_linkage = "static",
    deps = [
        ":blobstore-include",
        ":bridge/include",
    ],
)

cxx_library(
    name = "blobstore-include",
    exported_deps = ["//:core"],
    exported_headers = ["include/blobstore.h"],
)