nandi/jolt-nativepublic Fork 0
14a30c029628db6eb0966e8de5efffa1aeeafc57
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 · 117 lines · 5.8 KBTOML Blame HistoryRaw
Build under buck2, with the toolchain pinned rather than found 460541b nandi 19d ago1# The third-party graph, as one manifest for reindeer to vendor and generate
2# BUCK targets from. Every external crate the workspace's four members depend
3# on appears here once, with the union of the features they ask for; first-party
4# crates keep their own BUCK files and depend on `//third-party/rust:<name>`.
5#
6# Android-only dependencies (jni, winit's android-native-activity) are absent:
7# both objects this repo ships are desktop, and the APK takes its libvidya from
8# vidya's own buck2 build.
9[package]
10name = "jolt-native-third-party"
11version = "0.0.0"
12edition = "2021"
13publish = false
14
15# Its own workspace: reindeer resolves this graph on its own, and the root
16# workspace must not try to make it a member.
17[workspace]
18
19# Nothing is compiled from here; the manifest exists to pin a graph.
20[lib]
21path = "lib.rs"
22
23[dependencies]
24anyhow = "1"
25# cpal's cross-platform sample trait; see the note above the patch table.
26dasp_sample = "0.11"
27# `image-data` is the clipboard path for a pasted picture; egui does not deliver
28# one. Desktop only — arboard has no Android backend.
29arboard = { version = "3", default-features = false, features = ["image-data"] }
30# Without cpal's `pipewire` feature, which is on by default under cargo: it
31# builds libspa-sys, which wants pkg-config and PipeWire's headers on the build
32# machine — the one system dependency the zig toolchain cannot stand in for.
33# The buck2 build is therefore `--no-default-features` shaped for now: ALSA PCM
34# names only, everything else equal.
35cpal = { path = "cpal" }
36# `default_fonts` because a shared library has no host app to install a font set
37# for it. vidya-core turns egui's defaults off; the union is what gets built.
38egui = { version = "0.31", features = ["default_fonts"] }
39egui-winit = "0.31"
40egui_glow = "0.31"
41env_logger = "0.11"
42glow = "0.16"
43glutin = "0.32"
44glutin-winit = "0.5"
45# JPEG only — the V4L2 path converts MJPEG frames, and nothing here reads or
46# writes a picture file.
47image = { version = "0.25", default-features = false, features = ["jpeg"] }
48iroh-live = { git = "https://github.com/n0-computer/iroh-live", rev = "edd9bcc530a615f3ab3a6919e96790a077905376", default-features = false, features = [
49 "opus",
50 "h264",
51 "capture-camera",
52] }
53libc = "0.2"
54log = "0.4"
55moq-lite = { git = "https://github.com/Frando/moq", branch = "deps/iroh-main" }
56moq-native = { git = "https://github.com/Frando/moq", branch = "deps/iroh-main", default-features = false, features = [
57 "noq",
58 "websocket",
59 "aws-lc-rs",
60] }
61mp4 = "0.14"
62n0-future = "0.3"
63# C++, which is why the toolchain needs both halves of zig.
64openh264 = { version = "0.9", default-features = false, features = ["source"] }
65png = "0.17"
66rand = "0.8"
67# aws-lc-rs rather than ring, to match what moq-native and iroh already pull in.
68rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs"] }
69tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time"] }
70# One query parameter (`inst=`) needs escaping. That is the whole use.
71urlencoding = "2"
72url = "2"
73# V4L2 capture: the fallback path for cameras rusty-capture mishandles.
74v4l2r = "0.0.7"
75winit = "0.30"
76zip = { version = "2", default-features = false, features = ["deflate"] }
77
78# Carried over from the workspace root verbatim: iroh-live wants an unreleased
79# iroh 0.97, and the revs are the ones freeq locks. They travel together and are
80# not independently bumpable.
81# cpal's own dependencies, named here so reindeer gives them public aliases:
82# the hand-written target in cpal/BUCK lives in a different package, and
83# reindeer only makes top-level deps visible outside its own.
84[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd"))'.dependencies]
85alsa = "0.11"
86
87[target.'cfg(target_vendor = "apple")'.dependencies]
88coreaudio-rs = { version = "0.14", default-features = false, features = ["core_audio", "audio_toolbox"] }
89mach2 = "0.5"
90objc2 = "0.6"
91objc2-audio-toolbox = { version = "0.3", default-features = false, features = ["std", "AUComponent", "AudioUnitProperties"] }
92objc2-core-audio = { version = "0.3", default-features = false, features = ["std", "AudioHardware", "AudioHardwareDeprecated", "objc2", "objc2-foundation"] }
93objc2-core-audio-types = { version = "0.3", default-features = false, features = ["std", "CoreAudioBaseTypes"] }
94objc2-core-foundation = "0.3"
95objc2-foundation = "0.3"
96
97[patch.crates-io]
98iroh = { git = "https://github.com/n0-computer/iroh", rev = "8af8370b" }
99iroh-base = { git = "https://github.com/n0-computer/iroh", rev = "8af8370b" }
100iroh-relay = { git = "https://github.com/n0-computer/iroh", rev = "8af8370b" }
101iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", rev = "1038f721" }
102noq = { git = "https://github.com/n0-computer/noq", rev = "ab042ea7e3f7bae1e43eaba2ac9dba47ddb52e69" }
103noq-proto = { git = "https://github.com/n0-computer/noq", rev = "ab042ea7e3f7bae1e43eaba2ac9dba47ddb52e69" }
104noq-udp = { git = "https://github.com/n0-computer/noq", rev = "ab042ea7e3f7bae1e43eaba2ac9dba47ddb52e69" }
105web-transport-iroh = { git = "https://github.com/Frando/web-transport", rev = "f7a523f1" }
106web-transport-noq = { git = "https://github.com/Frando/web-transport", rev = "f7a523f1" }
107web-transport-proto = { git = "https://github.com/Frando/web-transport", rev = "f7a523f1" }
108web-transport-trait = { git = "https://github.com/Frando/web-transport", rev = "f7a523f1" }
109
110# moq-media (inside iroh-live) asks for cpal on `branch = "master"`, which
111# floats, and master no longer compiles against the iroh-live rev pinned above.
112# The vendored copy is the last commit that does — 63ea9ff upstream, per its
113# .cargo_vcs_info.json. It has to be a path rather than that rev: cargo
114# canonicalises the URL, so naming the same repo without `.git` is still "the
115# same source", which a patch may not retarget.
116[patch."https://github.com/RustAudio/cpal.git"]
117cpal = { path = "cpal" }