-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
53 lines (48 loc) · 1.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[package]
name = "findora-exporter"
version = "1.3.4"
authors = ["tommady <[email protected]>"]
edition = "2021"
readme = "README.md"
documentation = "https://github.com/FindoraNetwork/findora-exporter"
homepage = "https://github.com/FindoraNetwork/findora-exporter"
repository = "https://github.com/FindoraNetwork/findora-exporter"
license = "MIT"
description = """
findora-exporter is a Prometheus custom exporter for exposing custom metrics.
"""
[dependencies]
simple_logger = { version = "2.1", default-features = false, features = ["threads"] }
log = "0.4"
anyhow = "1.0"
prometheus = "0.13"
ctrlc = { version = "3.2", features = ["termination"] }
tiny_http = "0.11"
ureq = { version = "2.3", features = ["json"] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
time = { version = "0.3", features = ["parsing", "local-offset"] }
[dev-dependencies]
nix = "0.25"
[profile.release]
opt-level = 's'
lto = true
codegen-units = 1
panic = 'abort'
[package.metadata.deb]
maintainer-scripts = "debian/"
section = "utility"
license-file = ["LICENSE"]
assets = [
["target/release/findora-exporter", "usr/local/bin/", "755"],
]
extended-description = """\
the deb package will try to install
1. the findora-exporter as a systemd service
2. put the binary under /usr/local/bin/ folder
3. expecting a config file at /etc/prometheus/findora_exporter_config.json
4. expecting an user named ubuntu
"""
[package.metadata.deb.systemd-units]
unit-name = "findora-exporter"
start = false