# 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 believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] edition = "2018" name = "logram" version = "2.0.0" authors = ["Max Eliseev "] description = "Utility that takes logs from anywhere and sends them to Telegram" readme = "README.md" license = "MIT" [package.metadata.deb] assets = [["target/release/logram", "usr/bin/", "755"], ["README.md", "usr/share/doc/logram/README", "644"], ["assets/config.yaml", "etc/logram.yaml", "644"]] conf-files = ["/etc/logram.yaml"] depends = "$auto" features = ["bin_core", "ls_counter", "ls_filesystem", "ls_journald", "ls_docker"] maintainer-scripts = "assets/scripts/" section = "utility" [package.metadata.deb.systemd-units] enable = false start = false [[package.metadata.generate-rpm.assets]] dest = "/usr/bin/logram" mode = "0755" source = "target/release/logram" [[package.metadata.generate-rpm.assets]] config = true dest = "/etc/logram.yaml" mode = "0644" source = "assets/config.yaml" [[package.metadata.generate-rpm.assets]] dest = "/lib/systemd/system/logram.service" mode = "0644" source = "assets/scripts/logram.service" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/doc/logram/LICENSE" doc = true mode = "0644" source = "LICENSE" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/doc/logram/README.md" doc = true mode = "0644" source = "README.md" [lib] name = "logram" path = "src/lib/mod.rs" [[bin]] name = "logram" doctest = false doc = false required-features = ["bin_core"] [dependencies.anyhow] version = "1.0" [dependencies.bollard] version = "0.9" optional = true [dependencies.cfg-if] version = "1.0" optional = true [dependencies.chrono] version = "0.4" optional = true [dependencies.clap] version = "2.33" optional = true [dependencies.futures] version = "0.3" optional = true [dependencies.hostname] version = "0.3" optional = true [dependencies.log] version = "0.4" features = ["std"] [dependencies.notify] version = "4.0" optional = true [dependencies.reqwest] version = "0.10" features = ["blocking", "json", "socks"] [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.serde_yaml] version = "0.8" optional = true [dependencies.systemd] version = "0.7" optional = true [dependencies.teloxide] version = "0.3" optional = true [dependencies.tokio] version = "0.2" features = ["rt-threaded", "macros", "time", "blocking"] optional = true [features] bin_core = ["clap", "serde_yaml", "teloxide", "tokio", "chrono", "futures", "hostname", "cfg-if"] ls_counter = [] ls_docker = ["bollard"] ls_filesystem = ["notify"] ls_journald = ["systemd"]