| Paint the same tree into a terminal, for the machines with no window a7f6202 nandi 17d ago | 1 | # The C ABI Jolt loads for a terminal UI: libjolttui.so. |
| 2 | # |
| 3 | # The same shape as //crates/jolt-vidya, and for the same reason: one glimmer |
| 4 | # backend on the jolt side, and a choice of shared object underneath it. |
| 5 | rust_library( |
| 6 | name = "jolt-tui", |
| 7 | srcs = glob(["src/**/*.rs"]), |
| 8 | crate = "jolttui", |
| 9 | crate_root = "src/lib.rs", |
| 10 | edition = "2021", |
| 11 | features = ["terminal"], |
| 12 | preferred_linkage = "shared", |
| 13 | # Without this buck names the library after the target — lib_jolt-tui.so — |
| 14 | # and that name, not the filename, is what a dependent's DT_NEEDED gets. |
| 15 | soname = "libjolttui.so", |
| 16 | # As on the vidya cdylib: cross-crate inlining across the graph, one codegen |
| 17 | # unit so the dedup is not fighting parallelism inside the crate. |
| 18 | rustc_flags = [ |
| 19 | "-Clto=fat", |
| 20 | "-Ccodegen-units=1", |
| 21 | ], |
| 22 | visibility = ["PUBLIC"], |
| 23 | deps = [ |
| 24 | "//crates/jolt-abi:jolt-abi", |
| 25 | "//third-party/rust:crossterm", |
| 26 | "//third-party/rust:log", |
| 27 | ], |
| 28 | ) |