generated from lucas/rust-template
GitHub expects a 'Last-Modified' header, and honoring an 'X-Poll-Interval' header for their notifications endpoint. Other services might also have certain limitations that require customizing every API query individually. Since that's not possible if API tasks are configured once and run off of an interval, this reworks them so that the config needs to trigger every query individually. A `delay` parameter allows re-creating the same intervals that were possible before. This also moves the configuration for Ntfy to the Lua file.
19 lines
638 B
TOML
19 lines
638 B
TOML
[package]
|
|
name = "ntfy-collector"
|
|
description = "A daemon to collect notifications from various places and forward them to Ntfy"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "EUPL-1.2"
|
|
|
|
[dependencies]
|
|
axum = "0.7.5"
|
|
color-eyre = "0.6.3"
|
|
mlua = { version = "0.9.9", features = ["luajit", "macros", "serialize"] }
|
|
reqwest = { version = "0.12.7", features = ["json"] }
|
|
serde = { version = "1.0.209", features = ["derive"] }
|
|
serde_json = "1.0.128"
|
|
serde_repr = "0.1.19"
|
|
tokio = { version = "1.40.0", features = ["rt", "sync"] }
|
|
tracing = "0.1.40"
|
|
tracing-error = "0.2.0"
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|