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

Bring vidya in cfd3e36 · on e40b795acdf08fdae31fc3f95e29fcfc01e29eea · nandi · 19d ago
Cargo.toml · 40 lines · 1.4 KBTOML 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
29
30
31
32
33
34
35
36
37
38
39
40
[package]
name = "vidya-ffi"
version = "0.1.0"
edition = "2021"
description = "Vidya C ABI backed by the Rust egui implementation"
license = "MIT"
publish = false

# Produces `libvidya.so` / `libvidya.dylib`. egui is the only backend now — the
# raylib and cimgui ones this name used to be interchangeable with are gone.
[lib]
name = "vidya"
crate-type = ["cdylib"]

[dependencies]
# The Rust semantic layer this ABI exposes. Renamed so the cdylib itself can
# keep the `vidya` lib name.
vidya_core = { package = "vidya", path = "../vidya-core" }

# `default_fonts` matters here: the root crate turns egui's defaults off, and a
# shared library has no host app to install a font set for it.
egui = { version = "0.31", features = ["default_fonts"] }
egui-winit = "0.31"
egui_glow = "0.31"
glow = "0.16"
# Decoding the images an `:image` node paints.
png = "0.17"
glutin = "0.32"
glutin-winit = "0.5"
winit = "0.30"

# Reading a pasted picture off the clipboard, which egui does not deliver.
# Desktop only: arboard has no Android backend.
[target.'cfg(not(target_os = "android"))'.dependencies]
arboard = { version = "3", default-features = false, features = ["image-data"] }

# `vidya_open_url` is an ACTION_VIEW intent there, which is a JNI call against
# the activity the glue holds. Nothing else on this side needs a JVM.
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.22"