BUCKannotatedBUCKsource36 lines · 1.1 KB · raw
1rust_library(
2    name = "panels",
3    srcs = glob(["src/**/*.rs"]),
4    crate_root = "src/lib.rs",
5    edition = "2024",
6    # Hot-patch flags, same rationale as apps/native/BUCK and
7    # research/subsecond-patch-build.md §6: this crate has no
8    # `subsecond::call`/`HotFn` boundary of its own (that lives in
9    # apps/native, the tip crate), but tools/hotpatch/patch.sh still needs its
10    # freshly rebuilt `.rcgu.o` objects to fold an edit here into a patch -
11    # see tools/hotpatch/CLAUDE.md for what makes that work and what does not.
12    rustc_flags = [
13        "-Csave-temps=true",
14        "-Clink-dead-code",
15    ],
16    deps = [
17        "//packages/alttp:alttp",
18        "//packages/console:console",
19        "//third-party/rust:egui",
20        "//third-party/rust:serde_json",
21    ],
22    visibility = ["PUBLIC"],
23)
24
25rust_test(
26    name = "test",
27    srcs = glob(["src/**/*.rs"]),
28    crate_root = "src/lib.rs",
29    edition = "2024",
30    deps = [
31        "//packages/alttp:alttp",
32        "//packages/console:console",
33        "//third-party/rust:egui",
34        "//third-party/rust:serde_json",
35    ],
36)