2.6 KiB · text History 8304b4a
[package]
name = "koco"
version = "0.1.2"
edition = "2024"
description = "A Kodi Controller"
authors = ["Gabe <gabe@neiam.org>"]
license = "GPLv3"


[package.metadata.deb]
assets = [
    # target/release path is special, and gets replaced by cargo-deb with the actual target dir path.
    ["target/release/koco", "usr/bin/", "755"],
    { source = "LICENSE.md", dest = "/usr/share/doc/neiam-koco/LICENSE", doc = true, mode = "0644" },
    { source = "README.md", dest = "/usr/share/doc/neiam-koco/README.md", doc = true, mode = "0644" },
    { source = "assets/koco.desktop", dest = "/usr/share/applications/koco.desktop", mode = "644" },
    { source = "assets/logo.png", dest = "/usr/share/icons/hicolor/256x256/apps/koco.png", mode = "644" },
]
section = "utility"
license-file = ["LICENSE.md", "4"]

[package.metadata.generate-rpm]
assets = [
    { source = "target/release/koco", dest = "/usr/bin/koco", mode = "0755" },
    { source = "LICENSE.md", dest = "/usr/share/doc/neiam-koco/LICENSE", doc = true, mode = "0644" },
    { source = "README.md", dest = "/usr/share/doc/neiam-koco/README.md", doc = true, mode = "0644" },
    { source = "assets/koco.desktop", dest = "/usr/share/applications/koco.desktop", mode = "644" },
    { source = "assets/logo.png", dest = "/usr/share/icons/hicolor/256x256/apps/koco.png", mode = "644" },
]


[dependencies]
chrono = "0.4"
# glow, as eframe 0.33 defaulted to, rather than 0.34's new default of
# wgpu; and no system_fonts, which 0.37 adds, so the look is unchanged.
eframe = { version = "0.37.0", default-features = false, features = [
    "accesskit",
    "clipboard",
    "default_fonts",
    "glow",
    "links",
    "wayland",
    "web_screen_reader",
    "x11",
] }
# winit's default features, as eframe's defaults turn on, except that the
# Wayland client-side decorations (what GNOME draws koco's frame with)
# are Adwaita's without the title text: drawing the title is what pulls
# in ab_glyph and the unmaintained ttf-parser (RUSTSEC-2026-0192).
# `wayland-csd-adwaita-crossfont` would draw it with fontconfig and
# FreeType instead, at the cost of building against both.
winit = { version = "0.30.13", default-features = false, features = [
    "rwh_06",
    "x11",
    "wayland",
    "wayland-dlopen",
    "wayland-csd-adwaita-notitle",
] }
egui = "0.37.0"
egui_material_icons = "0.9.0"
log = "0.4"
env_logger = "0.11"
serde = { version = "1.0", features = ["derive", "default"] }
serde_json = "1.0"
toml = "0.8.0"
dirs = "5.0"
reqwest = { version = "0.12", features = ["blocking", "json"] }
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = "0.24"
futures-util = "0.3"
paho-mqtt = "0.13"