| Bring vidya in cfd3e36 nandi 19d ago | 1 | [package] |
| 2 | name = "vidya-ffi" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | description = "Vidya C ABI backed by the Rust egui implementation" |
| 6 | license = "MIT" |
| 7 | publish = false |
| 8 | |
| 9 | # Produces `libvidya.so` / `libvidya.dylib`. egui is the only backend now — the |
| 10 | # raylib and cimgui ones this name used to be interchangeable with are gone. |
| 11 | [lib] |
| 12 | name = "vidya" |
| 13 | crate-type = ["cdylib"] |
| 14 | |
| 15 | [dependencies] |
| 16 | # The Rust semantic layer this ABI exposes. Renamed so the cdylib itself can |
| 17 | # keep the `vidya` lib name. |
| 18 | vidya_core = { package = "vidya", path = "../vidya-core" } |
| 19 | |
| 20 | # `default_fonts` matters here: the root crate turns egui's defaults off, and a |
| 21 | # shared library has no host app to install a font set for it. |
| 22 | egui = { version = "0.31", features = ["default_fonts"] } |
| 23 | egui-winit = "0.31" |
| 24 | egui_glow = "0.31" |
| 25 | glow = "0.16" |
| 26 | # Decoding the images an `:image` node paints. |
| 27 | png = "0.17" |
| 28 | glutin = "0.32" |
| 29 | glutin-winit = "0.5" |
| 30 | winit = "0.30" |
| 31 | |
| 32 | # Reading a pasted picture off the clipboard, which egui does not deliver. |
| 33 | # Desktop only: arboard has no Android backend. |
| 34 | [target.'cfg(not(target_os = "android"))'.dependencies] |
| 35 | arboard = { version = "3", default-features = false, features = ["image-data"] } |
| 36 | |
| 37 | # `vidya_open_url` is an ACTION_VIEW intent there, which is a JNI call against |
| 38 | # the activity the glue holds. Nothing else on this side needs a JVM. |
| 39 | [target.'cfg(target_os = "android")'.dependencies] |
| 40 | jni = "0.22" |