nandi/jolt-nativepublic Fork 0
8cf1b3347ef6fa83297b6866dfd47d2728d4e339
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.

Build under buck2, with the toolchain pinned rather than found 460541b · on 8cf1b3347ef6fa83297b6866dfd47d2728d4e339 · nandi · 19d ago
BUCK · 28 lines · 1.0 KBPython 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 the UI: libvidya.so.
rust_library(
    name = "vidya-ffi",
    srcs = glob(["src/**/*.rs"]),
    crate = "vidya",
    crate_root = "src/lib.rs",
    edition = "2021",
    preferred_linkage = "shared",
    # Without this buck names the library after the target — lib_vidya-ffi.so —
    # and that name, not the filename, is what the linker writes into a
    # dependent's DT_NEEDED. Every consumer looks for `libvidya`.
    soname = "libvidya.so",
    visibility = ["PUBLIC"],
    # Cargo renames the dependency so the cdylib itself can keep the `vidya`
    # crate name; mirror that here.
    named_deps = {"vidya_core": "//crates/vidya-core:vidya"},
    deps = [
        "//third-party/rust:arboard",
        "//third-party/rust:egui",
        "//third-party/rust:egui-winit",
        "//third-party/rust:egui_glow",
        "//third-party/rust:glow",
        "//third-party/rust:glutin",
        "//third-party/rust:glutin-winit",
        "//third-party/rust:png",
        "//third-party/rust:winit",
    ],
)