[package] name = "simply-dvb" version = "0.1.5" edition = "2021" rust-version = "1.85" description = "simply-dvb - lightweight DVB-T/T2/C server: scanning, HLS, M3U, EPG/XMLTV, recording and a web panel" authors = ["Mateusz Gruszczyński"] license = "AGPL-3.0-or-later" readme = "README.md" publish = false [[bin]] name = "simply-dvb" path = "src/main.rs" [lib] name = "simply_dvb" path = "src/lib.rs" [dependencies] anyhow = "1.0" thiserror = "2" argon2 = "0.5" axum = { version = "0.8.9", default-features = false, features = ["http1", "json", "query", "tokio", "form"] } base64 = "0.22" bytes = "1.10" chrono = { version = "0.4", default-features = false, features = ["clock", "std"] } clap = { version = "4.5", features = ["derive", "env"] } encoding_rs = "0.8" flate2 = "1.1" futures-util = "0.3" getrandom = "0.3" ipnet = { version = "2.11", features = ["serde"] } libc = "0.2" quick-xml = "0.38" regex = "1" reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "gzip"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" sha1 = "0.10" url = "2" sha2 = "0.10" sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "sqlite", "migrate", "macros"] } subtle = "2.6" tokio = { version = "1.45", features = ["macros", "rt-multi-thread", "net", "signal", "time", "sync", "fs", "io-util", "process"] } tokio-stream = { version = "0.1", features = ["sync"] } tokio-util = { version = "0.7", features = ["io"] } tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "registry"] } unicode-normalization = "0.1" sysinfo = { version = "0.36.1", default-features = false, features = ["system", "network", "component"] } [build-dependencies] serde_json = "1.0" sha2 = "0.10" [dev-dependencies] tempfile = "3.19" tower = { version = "0.5", features = ["util"] } http-body-util = "0.1" [profile.release] lto = "thin" codegen-units = 1 strip = "debuginfo" [package.metadata.deb] maintainer = "Mateusz Gruszczyński" copyright = "Mateusz Gruszczyński" section = "video" priority = "optional" depends = "libc6 (>= 2.31), adduser" recommends = "ffmpeg" extended-description = """\ Lightweight DVB-T/T2/C television server written in Rust. It scans multiplexes, \ serves channels as HLS, MPEG-TS and M3U playlists (tvheadend-compatible URLs), \ collects EPG from the broadcast (EIT) or XMLTV sources and publishes it as XMLTV, \ records programmes and provides a web panel with an in-browser player.""" maintainer-scripts = "packaging/debian/" conf-files = ["/etc/default/simply-dvb"] assets = [ ["target/release/simply-dvb", "usr/bin/", "755"], ["packaging/simply-dvb.default", "etc/default/simply-dvb", "644"], ["README.md", "usr/share/doc/simply-dvb/README.md", "644"], ["scripts/import-tvheadend.py", "usr/share/simply-dvb/import-tvheadend.py", "755"], ] [package.metadata.deb.systemd-units] unit-name = "simply-dvb" unit-scripts = "packaging/systemd/" enable = true start = true # restart the service when the package is upgraded (new binary takes effect immediately) restart-after-upgrade = true