-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
82 lines (76 loc) · 2.95 KB
/
Copy pathCargo.toml
File metadata and controls
82 lines (76 loc) · 2.95 KB
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
73
74
75
76
77
78
79
80
81
82
[package]
name = "mallard-metrics"
version = "0.2.0"
edition = "2024"
rust-version = "1.98.0"
description = "Self-hosted, privacy-focused web analytics powered by DuckDB and the behavioral extension"
license = "AGPL-3.0-only"
repository = "https://github.com/tomtom215/mallardmetrics"
readme = "README.md"
keywords = ["analytics", "web", "duckdb", "privacy", "self-hosted"]
categories = ["web-programming", "database"]
[features]
# Exposes `mallard_metrics::test_support` (the AppState builder) to integration
# tests. Enabled through the dev-dependency on this crate below; never enabled
# for a release build, so `tempfile` stays out of the shipped binary.
testing = ["dep:tempfile"]
[dependencies]
axum = { version = "0.8.9", features = ["macros"] }
duckdb = { version = "1.10505.0", features = ["bundled", "parquet", "chrono"] }
hmac = "0.13"
sha2 = "0.11"
# Constant-time primitives for secret comparison; see api::auth::constant_time_eq.
subtle = "2.6.1"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
tokio = { version = "1.53.1", features = ["full"] }
tower = { version = "0.5.3", features = ["util"] }
tower-http = { version = "0.7.0", features = ["cors", "compression-gzip", "trace", "timeout"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter", "json"] }
chrono = { version = "0.4.45", features = ["serde"] }
uuid = { version = "1.26", features = ["v4"] }
hex = "0.4.3"
parking_lot = "0.12.5"
rust-embed = { version = "8.12", features = ["compression"] }
mime_guess = "2.0.5"
toml = "1.1.4"
maxminddb = "0.30.3"
argon2 = "0.6"
rand = "0.10.2"
tempfile = { version = "3.27", optional = true }
[dev-dependencies]
# Self-dependency so integration tests and benches see the `testing`
# feature. Cargo unifies features across the dev graph, so the library is built
# once with the helper available to every test target.
mallard-metrics = { path = ".", features = ["testing"] }
criterion = { version = "0.8.2", features = ["html_reports"] }
proptest = "1.11"
tempfile = "3.27"
tower = { version = "0.5.3", features = ["util"] }
http-body-util = "0.1.5"
[[bench]]
name = "ingest_bench"
harness = false
[profile.release]
lto = true
codegen-units = 1
strip = true
panic = "abort"
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
# Allow common patterns that pedantic flags
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# Multiple dependency versions from transitive deps (we can't control these)
multiple_crate_versions = "allow"
# Doc backtick warnings are noise for internal code
doc_markdown = "allow"
# Nursery lint that conflicts with `let_and_return`: satisfying it means binding
# a result purely to end a guard's scope, which `let_and_return` then flags.
# Lock scopes here are deliberate and are documented where they matter.
significant_drop_tightening = "allow"