| Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago | 1 | # The C ABI Jolt loads for the UI: libvidya.so. |
| 2 | rust_library( |
| 3 | name = "vidya-ffi", |
| 4 | srcs = glob(["src/**/*.rs"]), |
| 5 | crate = "vidya", |
| 6 | crate_root = "src/lib.rs", |
| 7 | edition = "2021", |
| 8 | preferred_linkage = "shared", |
| 9 | # Without this buck names the library after the target — lib_vidya-ffi.so — |
| 10 | # and that name, not the filename, is what the linker writes into a |
| 11 | # dependent's DT_NEEDED. Every consumer looks for `libvidya`. |
| 12 | soname = "libvidya.so", |
| 13 | visibility = ["PUBLIC"], |
| 14 | # Cargo renames the dependency so the cdylib itself can keep the `vidya` |
| 15 | # crate name; mirror that here. |
| 16 | named_deps = {"vidya_core": "//crates/vidya-core:vidya"}, |
| 17 | deps = [ |
| 18 | "//third-party/rust:arboard", |
| 19 | "//third-party/rust:egui", |
| 20 | "//third-party/rust:egui-winit", |
| 21 | "//third-party/rust:egui_glow", |
| 22 | "//third-party/rust:glow", |
| 23 | "//third-party/rust:glutin", |
| 24 | "//third-party/rust:glutin-winit", |
| 25 | "//third-party/rust:png", |
| 26 | "//third-party/rust:winit", |
| 27 | ], |
| 28 | ) |