| Lift freeq's AV media plane out of sleek 90f8b89 nandi 19d ago | 1 | [package] |
| 2 | name = "jolt-moq" |
| 3 | description = "freeq's AV media plane — MoQ over QUIC, Opus and H.264 — behind a C ABI" |
| 4 | version.workspace = true |
| 5 | edition.workspace = true |
| 6 | license.workspace = true |
| 7 | repository.workspace = true |
| 8 | |
| 9 | [lib] |
| 10 | # The object jolt loads. `rlib` beside it so the crate's own tests — and any |
| 11 | # Rust consumer that would rather not go through C — can use it directly. |
| 12 | name = "joltmoq" |
| 13 | crate-type = ["cdylib", "rlib"] |
| 14 | |
| 15 | [features] |
| 16 | # cpal's native PipeWire host, on by default. Without it only ALSA PCMs are |
| 17 | # visible ("pipewire", "sysdefault") and the real OS sources a browser would |
| 18 | # offer — "EMEET SmartCam C960 Mono" and friends — cannot be picked at all, so |
| 19 | # device selection in a call becomes guesswork. |
| 20 | # |
| 21 | # It is a feature rather than unconditional because it builds `libspa-sys`, |
| 22 | # which needs pkg-config and PipeWire's own headers on the build machine. The |
| 23 | # flake at the workspace root supplies them; `--no-default-features` is for a |
| 24 | # machine that has neither and only needs the crate to compile. |
| 25 | default = ["pipewire"] |
| 26 | pipewire = ["cpal/pipewire"] |
| 27 | |
| 28 | [dependencies] |
| 29 | jolt-abi.workspace = true |
| 30 | log.workspace = true |
| 31 | |
| 32 | iroh-live = { git = "https://github.com/n0-computer/iroh-live", rev = "edd9bcc530a615f3ab3a6919e96790a077905376", default-features = false, features = [ |
| 33 | "opus", |
| 34 | "h264", |
| 35 | "capture-camera", |
| 36 | ] } |
| 37 | moq-native = { git = "https://github.com/Frando/moq", branch = "deps/iroh-main", default-features = false, features = [ |
| 38 | "noq", |
| 39 | "websocket", |
| 40 | "aws-lc-rs", |
| 41 | ] } |
| 42 | moq-lite = { git = "https://github.com/Frando/moq", branch = "deps/iroh-main" } |
| 43 | # aws-lc-rs rather than ring, to match what moq-native and iroh already pull in. |
| 44 | rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs"] } |
| 45 | cpal = { path = "../../third-party/cpal" } |
| 46 | # V4L2 capture: the fallback path for cameras rusty-capture mishandles. |
| 47 | v4l2r = "0.0.7" |
| 48 | # JPEG only — the V4L2 path converts MJPEG frames, and nothing here reads or |
| 49 | # writes a picture file, so the rest of the format set is dead weight. |
| 50 | image = { version = "0.25", default-features = false, features = ["jpeg"] } |
| 51 | # One query parameter (`inst=`) needs escaping. That is the whole use. |
| 52 | urlencoding = "2" |
| 53 | libc = "0.2" |
| 54 | n0-future = "0.3" |
| 55 | tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time"] } |
| 56 | anyhow = "1" |
| 57 | url = "2" |
| 58 | rand = "0.8" |
| 59 | env_logger = "0.11" |