Size: 559 bytes.


 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
# cs/labs/rust/BUILD
load(
    "@rules_rust//rust:defs.bzl",
    "rust_binary",
    "rust_library",
    "rust_test",
)

package(default_visibility = ["//visibility:public"])

rust_library(
    name = "hello_lib",
    srcs = ["lib.rs"],
)

rust_binary(
    name = "hello_world",
    srcs = ["main.rs"],
    deps = [":hello_lib"],
)

rust_test(
    name = "hello_world_test_gpt_rs",
    srcs = ["hello_world_test.gpt.rs"],
    data = [
        "BUILD",
        "hello_world_test.gpt.rs",
        "lib.rs",
        "main.rs",
    ],
    deps = [":hello_lib"],
)
v0 (commit) © 2025 @p13i.io | Load balancer proxied to: cs-code-viewer-2:8080 in 4ms.