BUCKannotatedBUCKsource35 lines · 828 B · raw
1load("//build:defs.bzl", "first_party_binary", "first_party_library", "first_party_test")
2
3DEPS = [
4    "//third-party:serde",
5    "//third-party:toml",
6]
7
8first_party_library(
9    name = "postjevsql-sidecar",
10    srcs = glob(["src/**/*.rs"]),
11    crate_root = "src/lib.rs",
12    deps = DEPS,
13    visibility = ["PUBLIC"],
14)
15
16# The CLI (converge, sync): the only part that talks to Postgres.
17first_party_binary(
18    name = "cli",
19    srcs = ["cli/main.rs"],
20    crate = "postjevsql_sidecar_cli",
21    crate_root = "cli/main.rs",
22    deps = [
23        "//crates/postjevsql-sidecar:postjevsql-sidecar",
24        "//third-party:tokio",
25        "//third-party:tokio-postgres",
26    ],
27    visibility = ["PUBLIC"],
28)
29
30first_party_test(
31    name = "test",
32    srcs = glob(["src/**/*.rs"]),
33    crate_root = "src/lib.rs",
34    deps = DEPS,
35)