| glimmer-cosmic: a libcosmic backend for glimmer (spike) 6a3304d nandi 8d ago | 1 | [package] |
| 2 | name = "jolt-cosmic" |
| 3 | version.workspace = true |
| 4 | edition.workspace = true |
| 5 | license.workspace = true |
| 6 | description = "glimmer's libcosmic backend behind a C ABI" |
| 7 | publish = false |
| 8 | |
| 9 | # Produces `libjoltcosmic.so`. The retained-tree ABI `libvidya` and |
| 10 | # `libjolttui` export, painted by libcosmic — so the jolt side picks a backend |
| 11 | # by naming a different shared object. |
| 12 | # |
| 13 | # Its own crate for the reason the workspace gives: libcosmic brings iced, |
| 14 | # wgpu, cosmic-text and zbus with it, and nobody who asked for a terminal |
| 15 | # should link any of that. It is also MPL-2.0 where the rest of this repo is |
| 16 | # MIT; linking it dynamically, as a separate object, keeps that boundary clean. |
| 17 | [lib] |
| 18 | name = "joltcosmic" |
| 19 | crate-type = ["cdylib", "rlib"] |
| 20 | |
| 21 | [dependencies] |
| 22 | jolt-abi.workspace = true |
| 23 | log.workspace = true |
| 24 | |
| Paint the rest of frq's tags in glimmer-cosmic 7703c75 nandi 8d ago | 25 | # Decoders for `:image` and `:avatar`. libcosmic builds iced with |
| 26 | # `image-without-codecs`, so a picture loaded by path decodes to nothing unless |
| 27 | # something turns the formats on; this is the same `image` crate iced links, so |
| 28 | # naming the features here is enough. |
| 29 | image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp"] } |
| 30 | |
| Report the window size, open the portal chooser, and colour emoji 71cdc87 nandi 8d ago | 31 | # The desktop's own file chooser, through the XDG portal — the version |
| 32 | # libcosmic's optional `rfd` feature is locked to, on the tokio runtime its |
| 33 | # executor already runs. |
| 34 | rfd = { version = "0.16", default-features = false, features = ["xdg-portal", "tokio"] } |
| 35 | |
| glimmer-cosmic: a libcosmic backend for glimmer (spike) 6a3304d nandi 8d ago | 36 | # Pinned to the rev the COSMIC applet in wayland-bar already builds against. |
| 37 | [dependencies.libcosmic] |
| 38 | git = "https://github.com/pop-os/libcosmic" |
| 39 | rev = "a401af8b1c54a8abd393b8c5b7c8809402f83850" |
| 40 | default-features = false |
| 41 | features = ["winit", "tokio", "wgpu", "x11", "wayland"] |