-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
63 lines (53 loc) · 1.54 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
54
55
56
57
58
59
60
61
62
63
[package]
name = "tsample"
version = "4.4.0"
authors = ["xudesheng <[email protected]>"]
edition = "2021"
readme = "README.md"
description = "A simple tool to grab Thingworx 8.x performance metrics."
license = "MIT"
categories = ["thingworx", "performance", "metrics"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "tsample"
path = "src/main.rs"
[dependencies]
clap = "3.1"
log = "0.4"
env_logger = "0.9"
ctrlc = "3.2"
lazy_static = "1.4"
regex = "1.5"
influxdb={ version = "0.5.2", features = ["derive"] }
serde = "1.0"
chrono = "0.4"
reqwest = {version = "0.11", features = ["json", "rustls-tls"], default-features = false}
tokio = { version = "1.17", features = ["full"] }
rustls = "0.20"
url = "2.2"
serde_json= "1.0"
anyhow = "1.0"
serde_yaml = "0.8"
evmap = "10.0.2"
prometheus = { version = "0.13", features = ["process"] }
warp = { version = "0.3", features = ["tls"]}
#[profile.release]
#strip = true
#opt-level = "z"
#lto = true
#codegen-units = 1
#panic = "abort"
[package.metadata.deb]
name = "tsample"
extended-description = """\
A simple tool to collect Thingworx metrics (see https://github.com/xudesheng/tsample)."""
priority = "optional"
section = "net"
depends = "$auto"
conf-files = ["/etc/tsample/tsample.yaml"]
maintainer-scripts="assets/debian"
assets = [
["assets/tsample.service", "/etc/systemd/system/tsample.service", "644"],
["assets/init.yaml", "/etc/tsample/tsample.yaml", "644"],
["target/x86_64-unknown-linux-musl/release/tsample", "/usr/sbin/", "755"],
]