-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
63 lines (56 loc) · 2.28 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 = "heartbeat"
version = "0.0.0-a"
description = "A service to keep a live heartbeat on multiple devices"
edition = "2021"
license = "MPL-2.0"
authors = ["Isis <[email protected]>"]
repository = "https://github.com/lmaotrigine/heartbeat"
homepage = "https://hb.5ht2.me"
publish = false
default-run = "heartbeat"
rust-version = "1.74"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = { version = "0.6", features = ["macros", "tokio", "ws"] }
axum-realip = { git = "https://git.5ht2.me/lmaotrigine/axum-realip", version = "0.1.0", rev = "7fd0be272a7b683ae58e5117c657341aa072b423" }
badges = { git = "https://github.com/lmaotrigine/badges", version = "0.1.0", optional = true }
base64ct = "1"
chrono = { version = "0.4", features = ["serde", "std", "clock"], default-features = false }
clap = { version = "4", default-features = false, features = ["derive", "env", "error-context", "help", "std", "usage"] }
color-eyre = "0.6"
erased-debug = { git = "https://git.5ht2.me/lmaotrigine/erased-debug", version = "0.1.0", features = ["serde"] }
html = { git = "https://git.5ht2.me/lmaotrigine/html-rs", version = "0.1.0", features = ["axum"], branch = "legacy" }
itoa = "1"
parking_lot = "0.12"
rand = { version = "0.8", default-features = false, features = ["getrandom"] }
reqwest = { version = "0.11", features = ["json", "rustls-tls-webpki-roots"], optional = true, default-features = false }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sqlx = { version = "0.7", features = ["chrono", "macros", "postgres", "runtime-tokio"], default-features = false }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal"] }
toml = "0.8"
tower-http = { version = "0.4", features = ["fs", "trace"] }
tracing = "0.1"
tracing-subscriber = "0.3"
unsafe_formatting = { git = "https://git.5ht2.me/lmaotrigine/unsafe_formatting", version = "0.1.0" }
[features]
default = ["badges", "webhook"]
badges = ["dep:badges"]
webhook = ["reqwest"]
migrate = ["sqlx/migrate"]
sqlx-tls = ["sqlx/tls-rustls"]
[[bin]]
name = "migrate_db"
required-features = ["migrate"]
[[bin]]
name = "heartbeat"
path = "src/bin/web.rs"
[profile.release]
panic = "abort"
strip = true
opt-level = 2
lto = true
[profile.micro]
inherits = "release"
opt-level = "z"