nandi/jolt-nativepublic Fork 0
00d32dd6bf0cde9cd73efa265c3057741d82e524
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Paint the same tree into a terminal, for the machines with no window a7f6202 · on 00d32dd6bf0cde9cd73efa265c3057741d82e524 · nandi · 17d ago
BUCK · 28 lines · 1001 BPython Blame HistoryRaw
 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
# The C ABI Jolt loads for a terminal UI: libjolttui.so.
#
# The same shape as //crates/jolt-vidya, and for the same reason: one glimmer
# backend on the jolt side, and a choice of shared object underneath it.
rust_library(
    name = "jolt-tui",
    srcs = glob(["src/**/*.rs"]),
    crate = "jolttui",
    crate_root = "src/lib.rs",
    edition = "2021",
    features = ["terminal"],
    preferred_linkage = "shared",
    # Without this buck names the library after the target — lib_jolt-tui.so —
    # and that name, not the filename, is what a dependent's DT_NEEDED gets.
    soname = "libjolttui.so",
    # As on the vidya cdylib: cross-crate inlining across the graph, one codegen
    # unit so the dedup is not fighting parallelism inside the crate.
    rustc_flags = [
        "-Clto=fat",
        "-Ccodegen-units=1",
    ],
    visibility = ["PUBLIC"],
    deps = [
        "//crates/jolt-abi:jolt-abi",
        "//third-party/rust:crossterm",
        "//third-party/rust:log",
    ],
)