# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "alerter" version = "0.3.2" authors = ["ultram4rine "] description = "Telegram and Matrix bot for alerts from Alertmanager" homepage = "https://github.com/ultram4rine/alerter#readme" documentation = "https://github.com/ultram4rine/alerter" readme = "README.md" keywords = [ "telegram-bot", "matrix-bot", "alertmanager", ] license = "Apache-2.0" repository = "https://github.com/ultram4rine/alerter" resolver = "2" [package.metadata.deb] copyright = "Copyright (c) 2022, ultram4rine . All rights reserved." license-file = [ "LICENSE", "0", ] depends = "$auto, libc-bin, passwd" extended-description-file = "pkg/doc/description.txt" section = "misc" assets = [ [ "target/release/alerter", "/usr/bin/alerter", "755", ], [ "templates/*", "/etc/alerter/templates/", "644", ], [ "pkg/doc/alerter.1", "/usr/share/man/man1/alerter.1", "644", ], [ "pkg/systemd/alerter.sysconfig", "/etc/sysconfig/alerter", "644", ], ] maintainer-scripts = "pkg/scripts" conf-files = [ "/etc/alerter/templates/default.tg.hbs", "/etc/alerter/templates/default.matrix.hbs", "/etc/sysconfig/alerter", ] changelog = "pkg/doc/changelog" [package.metadata.deb.systemd-units] unit-name = "alerter" unit-scripts = "pkg/systemd" enable = false [package.metadata.generate-rpm] license = "ASL 2.0" release = "1" post_install_script = "/usr/share/alerter/scripts/postinst" pre_uninstall_script = "/usr/share/alerter/scripts/prerm" auto-req = "auto" [[package.metadata.generate-rpm.assets]] source = "target/release/alerter" dest = "/usr/bin/alerter" mode = "755" [[package.metadata.generate-rpm.assets]] source = "templates/*" dest = "/etc/alerter/templates" mode = "644" config = true [[package.metadata.generate-rpm.assets]] source = "pkg/doc/alerter.1.gz" dest = "/usr/share/man/man1/alerter.1.gz" mode = "644" doc = true [[package.metadata.generate-rpm.assets]] source = "pkg/systemd/alerter.service" dest = "/usr/lib/systemd/system/alerter.service" mode = "644" [[package.metadata.generate-rpm.assets]] source = "pkg/systemd/alerter.sysconfig" dest = "/etc/sysconfig/alerter" mode = "644" config = true [[package.metadata.generate-rpm.assets]] source = "pkg/scripts/postinst" dest = "/usr/share/alerter/scripts/postinst" mode = "755" [[package.metadata.generate-rpm.assets]] source = "pkg/scripts/prerm" dest = "/usr/share/alerter/scripts/prerm" mode = "755" [package.metadata.generate-rpm.requires] glibc-common = "*" shadow-utils = "*" [[bin]] name = "mangen" path = "scripts/mangen.rs" test = false bench = false [dependencies.anyhow] version = "1.0" [dependencies.chrono] version = "0.4" [dependencies.clap] version = "3.2" features = [ "cargo", "derive", "env", ] [dependencies.clap_mangen] version = "0.1" [dependencies.dotenv] version = "0.15" [dependencies.futures] version = "0.3" [dependencies.handlebars] version = "4.3" [dependencies.log] version = "0.4.17" [dependencies.matrix-sdk] version = "0.5.0" features = ["markdown"] [dependencies.pretty_env_logger] version = "0.4.0" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.teloxide] version = "0.9" [dependencies.tokio] version = "1.19" features = [ "rt-multi-thread", "macros", ] [dependencies.warp] version = "0.3"