-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
72 lines (65 loc) · 2.87 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
64
65
66
67
68
69
70
71
72
[package]
name = "heartbeat"
version = "0.0.5-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
rust-version = "1.74"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum = { version = "0.7", features = ["macros", "tokio", "ws"] }
axum-realip = { git = "https://git.5ht2.me/lmaotrigine/axum-realip", version = "0.1.0" }
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", "wrap_help"] }
color-eyre = "0.6"
erased-debug = { git = "https://git.5ht2.me/lmaotrigine/erased-debug", version = "0.1.0", features = ["serde"] }
heartbeat-sys = { git = "https://git.5ht2.me/lmaotrigine/heartbeat-sys", version = "0.1.0" }
html = { git = "https://git.5ht2.me/lmaotrigine/html-rs", version = "0.1.0", features = ["axum"], branch = "bug/actix-broke" }
hyper = "1"
hyper-util = { version = "0.1", features = ["tokio", "server-auto"] }
itoa = "1"
mime_guess = { version = "2.0.4", default-features = false }
parking_lot = "0.12"
percent-encoding = { version = "2.3.0", default-features = false }
rand = { version = "0.8", default-features = false, features = ["getrandom"] }
reqwest = { version = "0.11", features = ["json"], optional = true, default-features = false }
rust-embed = "8"
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.5", features = ["timeout", "trace"] }
tower-service = "0.3"
tracing = "0.1"
tracing-subscriber = "0.3"
unsafe_formatting = { git = "https://git.5ht2.me/lmaotrigine/unsafe_formatting", version = "0.1.0" }
[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies]
jemallocator = "0.5"
[build-dependencies]
heartbeat-sys = { git = "https://git.5ht2.me/lmaotrigine/heartbeat-sys", version = "0.1.0" }
[features]
default = ["badges", "webhook", "tls-rustls"]
tls-rustls = ["reqwest?/rustls-tls-webpki-roots"]
tls-native = ["reqwest?/native-tls"]
tls-native-vendored = ["reqwest?/native-tls-vendored"]
badges = ["dep:badges"]
webhook = ["reqwest"]
migrate = ["sqlx/migrate"]
sqlx-tls = ["sqlx-tls-rustls"]
sqlx-tls-rustls = ["sqlx/tls-rustls"]
sqlx-tls-native = ["sqlx/tls-native-tls"]
[profile.release]
panic = "abort"
strip = true
opt-level = 2
lto = true
[profile.micro]
inherits = "release"
opt-level = "z"