nandi/jolt-nativepublic Fork 0
5adddc7cbf30ef4d53728c38d1d9260567b3875c
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.

Cargo.toml · 40 lines · 1.4 KBTOML Blame HistoryRaw
Bring vidya in cfd3e36 nandi 19d ago1[package]
2name = "vidya-ffi"
3version = "0.1.0"
4edition = "2021"
5description = "Vidya C ABI backed by the Rust egui implementation"
6license = "MIT"
7publish = 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]
12name = "vidya"
13crate-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.
18vidya_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.
22egui = { version = "0.31", features = ["default_fonts"] }
23egui-winit = "0.31"
24egui_glow = "0.31"
25glow = "0.16"
26# Decoding the images an `:image` node paints.
27png = "0.17"
28glutin = "0.32"
29glutin-winit = "0.5"
30winit = "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]
35arboard = { 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]
40jni = "0.22"