BUCKannotatedBUCKsource61 lines · 2.1 KB · raw
1rust_library(
2    name = "mcp",
3    srcs = glob(["src/**/*.rs"]),
4    crate_root = "src/lib.rs",
5    edition = "2024",
6    # Deliberately NOT hot-patch-flagged (no -Csave-temps/-Clink-dead-code):
7    # this crate has no subsecond::call/HotFn boundary, and is not meant to
8    # be folded into a tools/hotpatch patch - see CLAUDE.md. patch.sh's
9    # generic "hot-patch-flagged first-party dep" scan tries it, finds no
10    # .rcgu.o objects and skips it, so an edit here needs `restart`.
11    deps = [
12        "//packages/alttp:alttp",
13        "//packages/console:console",
14        "//third-party/rust:jev-http",
15        "//packages/panels:panels",
16        "//third-party/rust:async-trait",
17        "//third-party/rust:axum",
18        "//third-party/rust:base64",
19        "//third-party/rust:egui",
20        "//third-party/rust:png",
21        "//third-party/rust:rmcp",
22        "//third-party/rust:rustls",
23        "//third-party/rust:rustls-rustcrypto",
24        "//third-party/rust:schemars",
25        "//third-party/rust:serde",
26        "//third-party/rust:serde_json",
27        "//third-party/rust:subsecond",
28        "//third-party/rust:subsecond-types",
29        "//third-party/rust:tokio",
30    ],
31    visibility = ["PUBLIC"],
32)
33
34# The snapshot files' own tests (states.rs): pure file I/O under the system
35# temp directory, no window and no network.
36rust_test(
37    name = "test",
38    srcs = glob(["src/**/*.rs"]),
39    crate_root = "src/lib.rs",
40    edition = "2024",
41    deps = [
42        "//packages/alttp:alttp",
43        "//packages/console:console",
44        "//third-party/rust:jev-http",
45        "//packages/panels:panels",
46        "//third-party/rust:async-trait",
47        "//third-party/rust:axum",
48        "//third-party/rust:base64",
49        "//third-party/rust:egui",
50        "//third-party/rust:png",
51        "//third-party/rust:rmcp",
52        "//third-party/rust:rustls",
53        "//third-party/rust:rustls-rustcrypto",
54        "//third-party/rust:schemars",
55        "//third-party/rust:serde",
56        "//third-party/rust:serde_json",
57        "//third-party/rust:subsecond",
58        "//third-party/rust:subsecond-types",
59        "//third-party/rust:tokio",
60    ],
61)