From a6078562881e2efe2b2340c0d8c82057b00d09e0 Mon Sep 17 00:00:00 2001 From: Max batleforc Date: Tue, 17 Jun 2025 00:57:47 +0200 Subject: [PATCH] feat: motivationnnn --- ...rgo-timing-20250603T112056.184728202Z.html | 27433 ----------- ...rgo-timing-20250603T131747.089055908Z.html | 39437 ---------------- .cargo/cargo-timings/cargo-timing.html | 39437 ---------------- Cargo.lock | 78 + libs/cron_scheduler/Cargo.toml | 3 + libs/cron_scheduler/src/lib.rs | 150 +- 6 files changed, 224 insertions(+), 106314 deletions(-) delete mode 100644 .cargo/cargo-timings/cargo-timing-20250603T112056.184728202Z.html delete mode 100644 .cargo/cargo-timings/cargo-timing-20250603T131747.089055908Z.html delete mode 100644 .cargo/cargo-timings/cargo-timing.html diff --git a/.cargo/cargo-timings/cargo-timing-20250603T112056.184728202Z.html b/.cargo/cargo-timings/cargo-timing-20250603T112056.184728202Z.html deleted file mode 100644 index 8e2cf2e..0000000 --- a/.cargo/cargo-timings/cargo-timing-20250603T112056.184728202Z.html +++ /dev/null @@ -1,27433 +0,0 @@ - - - - Cargo Build Timings — bot 0.1.0 - - - - - -

Cargo Build Timings

-See Documentation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Targets:bot 0.1.0 (lib)
Profile:dev
Fresh units:375
Dirty units:1
Total units:376
Max concurrency:1 (jobs=16 ncpu=16)
Build start:2025-06-03T11:20:56.184728202Z
Total time:1327.2s (22m 7.2s)
rustc:rustc 1.87.0 (17067e9ac 2025-05-09)
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
- - - - - - - - - - - - - - -
- -
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - - -
UnitTotalCodegenFeatures
1.bot v0.1.01317.1s153.6s (12%)
- - - diff --git a/.cargo/cargo-timings/cargo-timing-20250603T131747.089055908Z.html b/.cargo/cargo-timings/cargo-timing-20250603T131747.089055908Z.html deleted file mode 100644 index 3ee32c4..0000000 --- a/.cargo/cargo-timings/cargo-timing-20250603T131747.089055908Z.html +++ /dev/null @@ -1,39437 +0,0 @@ - - - - Cargo Build Timings — bot 0.1.0, cron_scheduler 0.1.0, clickhouse_pool 0.1.0, database 0.1.0, cli 0.1.0, api 0.1.0, config 0.1.0, tool_tracing 0.1.0 - - - - - -

Cargo Build Timings

-See Documentation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Targets:bot 0.1.0 (lib)
cron_scheduler 0.1.0 (lib)
clickhouse_pool 0.1.0 (lib)
database 0.1.0 (lib)
cli 0.1.0 (bin "cli")
api 0.1.0 (lib)
config 0.1.0 (lib)
tool_tracing 0.1.0 (lib)
Profile:dev
Fresh units:0
Dirty units:410
Total units:410
Max concurrency:16 (jobs=16 ncpu=16)
Build start:2025-06-03T13:17:47.089055908Z
Total time:1054.1s (17m 34.1s)
rustc:rustc 1.87.0 (17067e9ac 2025-05-09)
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
- - - - - - - - - - - - - - -
- -
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UnitTotalCodegenFeatures
1.bot v0.1.0973.8s120.4s (12%)
2.serenity v0.12.451.3s24.7s (48%)builder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
3.zstd-sys v2.0.15+zstd.1.5.7 build script (run)48.9slegacy, std, zdict_builder
4.protobuf v3.7.226.0s21.8s (84%)default
5.opentelemetry_sdk v0.29.021.9s18.4s (84%)default, experimental_async_runtime, glob, internal-logs, logs, metrics, percent-encoding, rand, rt-tokio, serde_json, tokio, tokio-stream, trace, tracing
6.rustls v0.22.420.8s17.9s (86%)default, log, logging, ring, tls12
7.reqwest v0.11.2719.7s18.0s (91%)__rustls, __tls, hyper-rustls, mime_guess, multipart, rustls, rustls-tls, rustls-tls-webpki-roots, stream, tokio-rustls, tokio-util, wasm-streams, webpki-roots
8.tokio v1.45.119.5s14.2s (73%)bytes, default, fs, io-std, io-util, libc, macros, mio, net, parking_lot, rt, rt-multi-thread, signal, signal-hook-registry, socket2, sync, time, tokio-macros
9.regex-automata v0.4.918.3s15.3s (84%)alloc, dfa-onepass, hybrid, meta, nfa-backtrack, nfa-pikevm, nfa-thompson, perf-inline, perf-literal, perf-literal-multisubstring, perf-literal-substring, std, syntax, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment, unicode-word-boundary
10.rustls v0.21.1218.0s15.6s (87%)dangerous_configuration, default, log, logging, tls12
11.reqwest v0.12.1916.5s14.9s (91%)blocking
12.cli v0.1.0 bin "cli"14.9s
13.clickhouse v0.13.314.6s13.3s (91%)chrono, default, lz4, native-tls, uuid
14.h2 v0.3.2614.0s9.1s (65%)
15.h2 v0.4.1014.0s9.0s (64%)
16.tonic v0.12.313.7s11.4s (83%)channel, codegen, default, prost, router, server, transport
17.tokio-cron-scheduler v0.14.012.9s10.7s (83%)default, signal, tracing-subscriber
18.regex-syntax v0.8.511.4s9.1s (80%)default, std, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
19.aho-corasick v1.1.311.4s10.1s (88%)perf-literal, std
20.actix-server v2.6.011.2s10.1s (90%)default
21.prometheus v0.14.010.9s9.8s (90%)default, protobuf
22.tool_tracing v0.1.010.7s9.8s (91%)
23.toml_edit v0.22.2610.6s8.3s (79%)display, parse, serde
24.hyper v0.14.3210.4s6.4s (62%)client, h2, http1, http2, runtime, socket2, tcp
25.regex-syntax v0.6.299.8s7.9s (80%)default, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
26.tracing-subscriber v0.3.199.7s8.1s (83%)alloc, ansi, default, env-filter, fmt, matchers, nu-ansi-term, once_cell, regex, registry, sharded-slab, smallvec, std, thread_local, time, tracing, tracing-log
27.time v0.3.418.5s6.3s (75%)alloc, default, formatting, macros, parsing, serde, serde-well-known, std
28.utoipa v5.3.18.3s5.7s (68%)default, macros
29.openssl v0.10.738.1s4.9s (60%)default
30.ring v0.17.14 build script (run)7.9salloc, default, dev_urandom_fallback
31.opentelemetry-proto v0.29.07.1s5.8s (83%)gen-tonic, gen-tonic-messages, logs, metrics, prost, tonic, trace
32.axum v0.7.97.1s3.2s (46%)
33.hyper v1.6.06.9s5.0s (73%)client, default, http1, http2, server
34.encoding_rs v0.8.356.9s5.6s (82%)alloc, default
35.ring v0.17.146.8s4.9s (73%)alloc, default, dev_urandom_fallback
36.brotli v8.0.16.7s2.6s (39%)alloc-stdlib, default, std
37.opentelemetry-otlp v0.29.06.5s5.7s (87%)default, grpc-tonic, http, http-proto, internal-logs, logs, metrics, opentelemetry-http, prost, reqwest, reqwest-blocking-client, tokio, tonic, trace, tracing
38.utoipa-gen v5.3.16.2s
39.tungstenite v0.21.06.1s5.3s (87%)__rustls-tls, data-encoding, handshake, http, httparse, rustls, rustls-pki-types, sha1, url
40.actix-rt v2.10.05.8s5.5s (94%)
41.syn v2.0.1015.6s1.6s (28%)clone-impls, default, derive, extra-traits, fold, full, parsing, printing, proc-macro, visit, visit-mut
42.regex-automata v0.1.105.6s4.7s (85%)default, regex-syntax, std
43.chrono v0.4.415.6s4.1s (73%)alloc, android-tzdata, clock, default, iana-time-zone, js-sys, now, oldtime, serde, std, wasm-bindgen, wasmbind, winapi, windows-link
44.poise v0.6.15.6s3.3s (60%)cache, chrono, default, handle_panics
45.brotli-decompressor v5.0.05.3s4.3s (82%)alloc-stdlib, std
46.opentelemetry v0.29.14.9s4.0s (81%)default, futures, futures-core, futures-sink, internal-logs, logs, metrics, pin-project-lite, thiserror, trace, tracing
47.iri-string v0.7.84.7s2.6s (56%)alloc, default, std
48.hyper-util v0.1.134.6s2.6s (57%)client, client-legacy, client-proxy, default, http1, http2, server, server-auto, service, tokio
49.actix-web v4.11.04.4s2.2s (51%)__compress, compat, compat-routing-macros-force-pub, compress-brotli, compress-gzip, compress-zstd, cookies, default, http2, macros, unicode
50.data-encoding v2.9.04.3s3.9s (90%)alloc, default, std
51.icu_locale_core v2.0.04.3s3.6s (84%)zerovec
52.idna v1.0.34.1s3.7s (91%)alloc, compiled_data, std
53.regex-lite v0.1.64.0s3.4s (85%)default, std, string
54.serde_json v1.0.1403.7s2.6s (71%)default, std
55.url v2.5.43.6s3.0s (82%)default, serde, std
56.serde_derive v1.0.2193.6sdefault
57.futures-util v0.3.313.6s0.5s (15%)alloc, async-await, async-await-macro, channel, default, futures-channel, futures-io, futures-macro, futures-sink, io, memchr, sink, slab, std
58.toml v0.8.223.6s3.0s (85%)default, display, parse
59.actix-http v3.11.03.4s2.1s (60%)__compress, compress-brotli, compress-gzip, compress-zstd, default, http2, ws
60.http v0.2.123.4s2.4s (70%)
61.axum-core v0.4.53.4s1.2s (36%)
62.derive_more-impl v2.0.13.2sas_ref, default, deref, deref_mut, display, error, from
63.serde v1.0.2193.1s0.2s (8%)alloc, default, derive, serde_derive, std
64.rustls-webpki v0.102.83.1s2.5s (82%)alloc, ring, std
65.http v1.3.13.0s2.1s (70%)default, std
66.actix-router v0.5.32.9s2.4s (80%)http, unicode
67.serde v1.0.2192.9s0.1s (4%)default, std
68.darling_core v0.20.112.8s1.3s (46%)strsim, suggestions
69.syn v1.0.1092.8s0.9s (30%)clone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
70.tracing-opentelemetry v0.30.02.6s2.2s (85%)default, metrics, smallvec, tracing-log
71.rustls-webpki v0.101.72.6s2.1s (80%)alloc, default, std
72.winnow v0.7.102.6s0.5s (18%)alloc, default, std
73.miniz_oxide v0.8.82.6s2.1s (81%)with-alloc
74.config v0.1.02.4s1.8s (76%)
75.icu_properties v2.0.12.3s1.2s (51%)compiled_data
76.ipnet v2.11.02.3s2.0s (86%)default, std
77.regex v1.11.12.2s1.7s (78%)default, perf, perf-backtrack, perf-cache, perf-dfa, perf-inline, perf-literal, perf-onepass, std, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
78.time-macros v0.2.222.2sformatting, parsing, serde
79.opentelemetry-http v0.29.02.2s1.8s (84%)default, internal-logs, reqwest, tracing
80.icu_normalizer v2.0.02.1s1.7s (80%)compiled_data
81.poise_macros v0.6.12.0s
82.cookie v0.16.22.0s1.7s (85%)percent-encode, percent-encoding
83.derivative v2.2.01.9s
84.zerocopy v0.8.251.9s0.1s (4%)simd
85.prost-derive v0.13.51.9s
86.memchr v2.7.41.9s1.4s (72%)alloc, default, std
87.cc v1.2.251.8s0.8s (45%)parallel
88.language-tags v0.3.21.8s1.2s (64%)
89.database v0.1.01.7s0.8s (44%)
90.glob v0.3.21.7s1.4s (85%)
91.croner v2.1.01.7s1.4s (83%)
92.socket2 v0.5.101.7s1.3s (80%)all
93.protobuf-support v3.7.21.7s1.4s (83%)
94.parking_lot v0.12.41.6s1.4s (87%)default
95.tracing-log v0.1.41.6s1.3s (84%)default, log-tracer, std, trace-logger
96.tokio-util v0.7.151.6s0.8s (54%)codec, default, io
97.itertools v0.14.01.6s0.1s (5%)default, use_alloc, use_std
98.tracing-attributes v0.1.281.6s
99.tracing-core v0.1.331.6s1.2s (76%)default, once_cell, std
100.tower v0.4.131.5s0.2s (14%)__common, balance, buffer, discover, futures-core, futures-util, indexmap, limit, load, make, pin-project, pin-project-lite, rand, ready-cache, slab, tokio, tokio-util, tracing, util
101.openssl-sys v0.9.1091.5s0.1s (10%)
102.thiserror-impl v2.0.121.5s
103.clickhouse_pool v0.1.01.5s0.7s (48%)
104.bytes v1.10.11.5s0.9s (61%)default, std
105.zerovec-derive v0.11.11.4s
106.zerofrom-derive v0.1.61.4s
107.rustls-pki-types v1.12.01.4s1.0s (70%)alloc, default, std
108.api v0.1.01.4s0.9s (67%)
109.num_cpus v1.17.01.4s1.1s (82%)
110.thiserror-impl v1.0.691.4s
111.mio v1.0.41.4s1.0s (70%)default, log, net, os-ext, os-poll
112.pin-project-internal v1.1.101.4s
113.zerovec v0.11.21.4s0.1s (7%)alloc, derive, yoke
114.tower-http v0.6.51.4s1.0s (75%)follow-redirect, futures-util, iri-string, tower
115.rand v0.8.51.3s0.5s (38%)alloc, default, getrandom, libc, rand_chacha, small_rng, std, std_rng
116.async-trait v0.1.881.2s
117.yoke-derive v0.8.01.1s
118.num-derive v0.4.21.1s
119.icu_collections v2.0.01.1s0.7s (67%)
120.deranged v0.4.01.0s0.1s (5%)alloc, powerfmt, serde, std
121.signal-hook-registry v1.4.51.0s0.8s (81%)
122.rand v0.9.11.0s0.3s (31%)alloc, default, os_rng, small_rng, std, std_rng, thread_rng
123.futures-macro v0.3.311.0s
124.actix-web-codegen v4.3.01.0scompat-routing-macros-force-pub
125.native-tls v0.2.141.0s0.7s (73%)
126.utoipa-actix-web v0.1.21.0s0.9s (87%)
127.rand_chacha v0.3.11.0s0.8s (80%)std
128.mime_guess v2.0.51.0s0.6s (63%)default, rev-mappings
129.anyhow v1.0.981.0s0.7s (75%)default, std
130.value-bag v1.11.11.0s0.6s (61%)alloc, error, inline-i128, serde, serde1, std, value-bag-serde1
131.actix-cors v0.7.11.0s0.8s (77%)
132.serde_derive_internals v0.29.11.0s0.4s (43%)
133.rand_chacha v0.9.01.0s0.7s (73%)std
134.strfmt v0.2.40.9s0.7s (75%)
135.regex-lite v0.1.60.9s0.3s (36%)default, std, string
136.displaydoc v0.2.50.9s
137.sharded-slab v0.1.70.9s0.2s (18%)
138.erased-serde v0.4.60.9s0.4s (39%)alloc, std
139.iana-time-zone v0.1.630.9s0.8s (86%)fallback
140.indexmap v2.9.00.9s0.1s (6%)default, serde, std
141.hashbrown v0.15.30.9s0.1s (7%)
142.writeable v0.6.10.9s0.7s (78%)
143.futures-executor v0.3.310.9s0.7s (83%)default, std
144.tracing-actix-web v0.7.180.9s0.6s (64%)default, emit_event_on_error, opentelemetry_0_29, opentelemetry_0_29_pkg, tracing-opentelemetry_0_30_pkg
145.actix-web-prom v0.10.00.9s0.7s (78%)
146.tokio-macros v2.5.00.9s
147.hashbrown v0.14.50.9s0.1s (10%)
148.num-traits v0.2.190.8s0.1s (16%)default, std
149.flate2 v1.1.10.8s0.4s (45%)any_impl, default, miniz_oxide, rust_backend
150.dashmap v5.5.30.8s0.4s (45%)serde
151.uuid v1.17.00.8s0.5s (60%)default, rng, serde, std, v4
152.generic-array v0.14.70.8s0.0s (6%)more_lengths
153.tracing-bunyan-formatter v0.3.100.8s0.5s (56%)default, gethostname, hostname
154.nu-ansi-term v0.46.00.8s0.6s (72%)
155.matchit v0.7.30.8s0.5s (63%)default
156.base64 v0.21.70.8s0.5s (64%)alloc, default, std
157.typenum v1.18.00.8s0.0s (4%)
158.async-stream-impl v0.3.60.8s
159.vcpkg v0.2.150.8s0.4s (57%)
160.proc-macro2 v1.0.950.7s0.3s (41%)default, proc-macro
161.libc v0.2.1720.7s0.1s (7%)default, std
162.hashbrown v0.12.30.7s0.0s (5%)raw
163.mime v0.3.170.7s0.5s (74%)
164.bytes v1.10.10.7s0.1s (20%)
165.log v0.4.270.7s0.4s (50%)kv, kv_serde, kv_std, serde, std, value-bag
166.ring v0.17.14 build script0.7salloc, default, dev_urandom_fallback
167.mime_guess v2.0.5 build script0.7sdefault, rev-mappings
168.libc v0.2.1720.7s0.1s (9%)default, std
169.darling_macro v0.20.110.7s
170.actix-router v0.5.30.7s0.2s (34%)
171.base64 v0.22.10.7s0.4s (53%)alloc, default, std
172.httparse v1.10.10.7s0.4s (60%)default, std
173.openssl-sys v0.9.109 build script0.7s
174.serde_repr v0.1.200.6s
175.bstr v1.12.00.6s0.3s (45%)
176.actix-macros v0.2.40.6s
177.prost v0.13.50.6s0.2s (25%)default, derive, std
178.pkg-config v0.3.320.6s0.3s (57%)
179.cron_scheduler v0.1.00.6s0.2s (31%)
180.synstructure v0.13.20.6s0.3s (47%)default, proc-macro
181.rustversion v1.0.210.6s
182.tokio-stream v0.1.170.6s0.1s (17%)default, net, time
183.clickhouse-derive v0.2.00.6s
184.indexmap v1.9.30.6s0.0s (8%)
185.rustls-pemfile v1.0.40.6s0.4s (81%)
186.actix-codec v0.5.20.6s0.3s (52%)
187.sha1 v0.10.60.5s0.4s (67%)default, std
188.tower v0.5.20.5s0.1s (11%)__common, futures-core, futures-util, pin-project-lite, sync_wrapper, timeout, tokio, util
189.openssl-macros v0.1.10.5s
190.zerotrie v0.2.20.5s0.2s (39%)yoke, zerofrom
191.tracing v0.1.410.5s0.3s (63%)attributes, default, log, std, tracing-attributes
192.icu_provider v2.0.00.5s0.2s (42%)baked, zerotrie
193.parking_lot_core v0.9.110.5s0.3s (60%)
194.sealed v0.6.00.5s
195.httpdate v1.0.30.5s0.4s (77%)
196.tracing-log v0.2.00.5s0.3s (72%)log-tracer, std
197.toml_datetime v0.6.90.5s0.3s (54%)serde
198.zstd-sys v2.0.15+zstd.1.5.7 build script0.5slegacy, std, zdict_builder
199.tracing-core v0.1.330.5s0.1s (26%)
200.actix-service v2.0.30.5s0.0s (9%)
201.thread_local v1.1.80.4s0.2s (57%)
202.httparse v1.10.1 build script0.4sdefault, std
203.ryu v1.0.200.4s0.3s (69%)
204.ppv-lite86 v0.2.210.4s0.0s (7%)simd, std
205.zerocopy v0.8.25 build script0.4ssimd
206.cityhash-rs v1.0.10.4s0.3s (68%)
207.tokio-tungstenite v0.21.00.4s0.0s (8%)__rustls-tls, connect, default, handshake, rustls, rustls-pki-types, rustls-tls-webpki-roots, stream, tokio-rustls, webpki-roots
208.form_urlencoded v1.2.10.4s0.3s (75%)alloc, default, std
209.anyhow v1.0.980.4s0.2s (39%)default, std
210.typenum v1.18.0 build script0.4s
211.syn v1.0.109 build script0.4sclone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
212.protobuf v3.7.2 build script0.4sdefault
213.bitflags v2.9.10.4s0.2s (64%)
214.jobserver v0.1.330.4s0.1s (40%)
215.autocfg v1.4.00.3s0.2s (50%)
216.litemap v0.8.00.3s0.0s (14%)alloc
217.quote v1.0.400.3s0.1s (32%)default, proc-macro
218.libc v0.2.172 build script0.3sdefault, std
219.sct v0.7.10.3s0.2s (69%)
220.crc32fast v1.4.20.3s0.2s (55%)default, std
221.byteorder v1.5.00.3s0.0s (9%)default, std
222.deadpool v0.12.20.3s0.1s (18%)default, managed, unmanaged
223.unicase v2.8.10.3s0.2s (55%)
224.anyhow v1.0.98 build script0.3sdefault, std
225.percent-encoding v2.3.10.3s0.2s (67%)alloc, default, std
226.thiserror v2.0.12 build script0.3sdefault, std
227.thiserror v1.0.69 build script0.3s
228.serde_urlencoded v0.7.10.3s0.1s (26%)
229.rustversion v1.0.21 build script0.3s
230.getrandom v0.3.3 build script0.3sstd
231.openssl-probe v0.1.60.3s0.2s (76%)
232.getrandom v0.2.160.3s0.2s (53%)std
233.arrayvec v0.7.60.3s0.0s (12%)default, serde, std
234.rand_core v0.9.30.3s0.1s (31%)os_rng, std
235.lock_api v0.4.130.3s0.0s (14%)atomic_usize, default
236.getrandom v0.3.30.3s0.2s (54%)std
237.http-body v0.4.60.3s0.0s (13%)
238.serde v1.0.219 build script0.3sdefault, std
239.powerfmt v0.2.00.3s0.1s (51%)
240.version_check v0.9.50.3s0.1s (45%)
241.proc-macro2 v1.0.95 build script0.3sdefault, proc-macro
242.rand_core v0.6.40.3s0.1s (43%)alloc, getrandom, std
243.lz4_flex v0.11.30.3s0.0s (16%)std
244.once_cell v1.21.30.3s0.1s (34%)alloc, default, race, std
245.strsim v0.11.10.3s0.1s (37%)
246.tracing v0.1.410.3s0.1s (27%)log
247.hyper-tls v0.6.00.3s0.1s (54%)
248.serenity v0.12.4 build script0.3sbuilder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
249.tokio-rustls v0.24.10.3s0.0s (8%)default, logging, tls12
250.lock_api v0.4.13 build script0.3satomic_usize, default
251.native-tls v0.2.14 build script0.3s
252.http-body-util v0.1.30.3s0.0s (14%)default
253.tower-layer v0.3.30.3s0.0s (16%)
254.serde v1.0.219 build script0.3salloc, default, derive, serde_derive, std
255.ahash v0.8.120.3s0.0s (15%)default, getrandom, runtime-rng, std
256.prometheus v0.14.0 build script0.3sdefault, protobuf
257.num-traits v0.2.19 build script0.3sdefault, std
258.typeid v1.0.3 build script0.3s
259.foldhash v0.1.50.2s0.1s (50%)default, std
260.slab v0.4.90.2s0.0s (12%)default, std
261.yoke v0.8.00.2s0.0s (14%)alloc, derive, zerofrom
262.tokio-rustls v0.25.00.2s0.0s (14%)default, logging, ring, tls12
263.tokio-cron-scheduler v0.14.0 build script0.2sdefault, signal, tracing-subscriber
264.parking_lot_core v0.9.11 build script0.2s
265.icu_normalizer_data v2.0.0 build script0.2s
266.tinystr v0.8.10.2s0.1s (27%)alloc, zerovec
267.icu_properties_data v2.0.10.2s0.0s (13%)
268.indexmap v1.9.3 build script0.2s
269.slab v0.4.9 build script0.2sdefault, std
270.futures-io v0.3.310.2s0.1s (64%)std
271.toml_write v0.1.10.2s0.1s (32%)alloc, default, std
272.digest v0.10.70.2s0.0s (16%)alloc, block-buffer, core-api, default, std
273.unicase v2.8.10.2s0.0s (21%)
274.futures-channel v0.3.310.2s0.0s (19%)alloc, default, futures-sink, sink, std
275.utf-8 v0.7.60.2s0.1s (42%)
276.serde_fmt v1.0.30.2s0.1s (39%)
277.smallvec v1.15.00.2s0.0s (15%)const_generics, const_new
278.bytestring v1.4.00.2s0.1s (37%)
279.zstd-safe v7.2.4 build script0.2sarrays, legacy, std, zdict_builder
280.serde_json v1.0.140 build script0.2sdefault, std
281.hyper-rustls v0.24.20.2s0.1s (38%)
282.log v0.4.270.2s0.0s (21%)
283.zstd v0.13.30.2s0.1s (37%)arrays, default, legacy, zdict_builder
284.either v1.15.00.2s0.0s (7%)std, use_std
285.ahash v0.8.12 build script0.2sdefault, getrandom, runtime-rng, std
286.openssl v0.10.73 build script0.2sdefault
287.icu_properties_data v2.0.1 build script0.2s
288.rustls v0.21.12 build script0.2sdangerous_configuration, default, log, logging, tls12
289.generic-array v0.14.7 build script0.2smore_lengths
290.cookie v0.16.2 build script0.2spercent-encode, percent-encoding
291.hyper-timeout v0.5.20.2s0.0s (10%)
292.zeroize v1.8.10.2s0.1s (28%)alloc, default
293.tokio-native-tls v0.3.10.2s0.0s (24%)
294.want v0.3.10.2s0.1s (47%)
295.adler2 v2.0.00.2s0.1s (58%)
296.subtle v2.6.10.2s0.0s (20%)
297.rustls v0.22.4 build script0.2sdefault, log, logging, ring, tls12
298.gethostname v0.2.30.2s0.1s (58%)
299.utf8_iter v1.0.40.2s0.1s (44%)
300.zerofrom v0.1.60.2s0.0s (14%)alloc, derive
301.potential_utf v0.1.20.2s0.1s (32%)zerovec
302.actix-utils v3.0.10.1s0.1s (41%)
303.shlex v1.3.00.1s0.0s (24%)default, std
304.idna_adapter v1.2.10.1s0.0s (32%)compiled_data
305.alloc-stdlib v0.2.20.1s0.0s (16%)
306.webpki-roots v1.0.00.1s0.0s (17%)
307.async-stream v0.3.60.1s0.0s (15%)
308.pin-project v1.1.100.1s0.0s (17%)
309.matchers v0.1.00.1s0.0s (33%)
310.futures-task v0.3.310.1s0.0s (19%)alloc, std
311.serde_spanned v0.6.80.1s0.1s (37%)serde
312.bytestring v1.4.00.1s0.0s (21%)
313.num-traits v0.2.19 build script (run)0.1sdefault, std
314.zstd-safe v7.2.40.1s0.1s (39%)arrays, legacy, std, zdict_builder
315.secrecy v0.8.00.1s0.0s (32%)alloc, default, serde
316.alloc-no-stdlib v2.0.40.1s0.0s (16%)
317.futures-core v0.3.310.1s0.1s (52%)alloc, default, std
318.block-buffer v0.10.40.1s0.0s (25%)
319.http-body v1.0.10.1s0.0s (23%)
320.indexmap v1.9.3 build script (run)0.1s
321.crypto-common v0.1.60.1s0.0s (29%)std
322.atomic-waker v1.1.20.1s0.1s (48%)
323.derive_more v2.0.10.1s0.0s (38%)as_ref, default, deref, deref_mut, display, error, from, std
324.num-conv v0.1.00.1s0.0s (22%)
325.thiserror v2.0.12 build script (run)0.1sdefault, std
326.untrusted v0.9.00.1s0.0s (25%)
327.webpki-roots v0.25.40.1s0.0s (14%)
328.local-channel v0.1.50.1s0.0s (22%)
329.proc-macro2 v1.0.95 build script (run)0.1sdefault, proc-macro
330.deadpool-runtime v0.1.40.1s0.0s (30%)
331.fxhash v0.2.10.1s0.0s (34%)
332.typemap_rev v0.3.00.1s0.0s (26%)
333.num-conv v0.1.00.1s0.0s (17%)
334.replace_with v0.1.80.1s0.0s (32%)default, std
335.try-lock v0.2.50.1s0.0s (25%)
336.sync_wrapper v1.0.20.1s0.0s (14%)futures, futures-core
337.time-core v0.1.40.1s0.0s (30%)
338.itoa v1.0.150.1s0.0s (20%)
339.time-core v0.1.40.1s0.0s (35%)
340.thiserror v2.0.120.1s0.0s (29%)default, std
341.unicode-xid v0.2.60.1s0.0s (26%)default
342.impl-more v0.1.90.1s0.0s (28%)
343.pin-project-lite v0.2.160.1s0.0s (17%)
344.serde_cow v0.1.20.1s0.0s (36%)
345.ident_case v1.0.10.1s0.0s (27%)
346.slab v0.4.9 build script (run)0.1sdefault, std
347.local-waker v0.1.40.1s0.0s (58%)
348.futures-sink v0.3.310.1s0.0s (24%)alloc, default, std
349.lazy_static v1.5.00.1s0.0s (34%)
350.thiserror v1.0.690.1s0.0s (27%)
351.sync_wrapper v0.1.20.1s0.0s (34%)
352.utoipa-scalar v0.3.00.1s0.0s (16%)actix-web
353.zstd-sys v2.0.15+zstd.1.5.70.1s0.0s (41%)legacy, std, zdict_builder
354.tower-service v0.3.30.1s0.0s (44%)
355.anyhow v1.0.98 build script (run)0.1sdefault, std
356.typeid v1.0.30.1s0.0s (40%)
357.icu_normalizer_data v2.0.00.1s0.0s (38%)
358.mutually_exclusive_features v0.1.00.1s0.0s (34%)
359.overload v0.1.10.1s0.0s (28%)
360.lock_api v0.4.13 build script (run)0.1satomic_usize, default
361.fnv v1.0.70.1s0.0s (40%)default, std
362.anyhow v1.0.98 build script (run)0.1sdefault, std
363.cpufeatures v0.2.170.1s0.0s (35%)
364.trim-in-place v0.1.70.1s0.0s (31%)
365.scopeguard v1.2.00.1s0.0s (33%)
366.stable_deref_trait v1.2.00.1s0.0s (36%)alloc
367.futures v0.3.310.1s0.0s (27%)alloc, async-await, default, executor, futures-executor, std
368.webpki-roots v0.26.110.1s0.0s (33%)
369.value-bag-serde1 v1.11.10.1s0.0s (35%)alloc, std
370.cfg-if v1.0.00.1s0.0s (30%)
371.unicode-ident v1.0.180.1s0.0s (27%)
372.fnv v1.0.70.1s0.0s (27%)default, std
373.openssl-sys v0.9.109 build script (run)0.0s
374.thiserror v1.0.69 build script (run)0.0s
375.static_assertions v1.1.00.0s0.0s (21%)
376.foreign-types-shared v0.1.10.0s0.0s (37%)
377.darling v0.20.110.0s0.0s (20%)default, suggestions
378.foreign-types v0.3.20.0s0.0s (37%)
379.equivalent v1.0.20.0s0.0s (39%)
380.pin-project-lite v0.2.160.0s0.0s (45%)
381.libc v0.2.172 build script (run)0.0sdefault, std
382.pin-utils v0.1.00.0s0.0s (47%)
383.ahash v0.8.12 build script (run)0.0sdefault, getrandom, runtime-rng, std
384.zerocopy v0.8.25 build script (run)0.0ssimd
385.cfg-if v1.0.00.0s0.0s (69%)
386.typeid v1.0.3 build script (run)0.0s
387.generic-array v0.14.7 build script (run)0.0smore_lengths
388.serde v1.0.219 build script (run)0.0salloc, default, derive, serde_derive, std
389.httparse v1.10.1 build script (run)0.0sdefault, std
390.rustversion v1.0.21 build script (run)0.0s
391.cookie v0.16.2 build script (run)0.0spercent-encode, percent-encoding
392.libc v0.2.172 build script (run)0.0sdefault, std
393.serde v1.0.219 build script (run)0.0sdefault, std
394.syn v1.0.109 build script (run)0.0sclone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
395.mime_guess v2.0.5 build script (run)0.0sdefault, rev-mappings
396.typenum v1.18.0 build script (run)0.0s
397.icu_normalizer_data v2.0.0 build script (run)0.0s
398.icu_properties_data v2.0.1 build script (run)0.0s
399.getrandom v0.3.3 build script (run)0.0sstd
400.rustls v0.22.4 build script (run)0.0sdefault, log, logging, ring, tls12
401.serde_json v1.0.140 build script (run)0.0sdefault, std
402.parking_lot_core v0.9.11 build script (run)0.0s
403.native-tls v0.2.14 build script (run)0.0s
404.rustls v0.21.12 build script (run)0.0sdangerous_configuration, default, log, logging, tls12
405.openssl v0.10.73 build script (run)0.0sdefault
406.serenity v0.12.4 build script (run)0.0sbuilder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
407.tokio-cron-scheduler v0.14.0 build script (run)0.0sdefault, signal, tracing-subscriber
408.prometheus v0.14.0 build script (run)0.0sdefault, protobuf
409.protobuf v3.7.2 build script (run)0.0sdefault
410.zstd-safe v7.2.4 build script (run)0.0sarrays, legacy, std, zdict_builder
- - - diff --git a/.cargo/cargo-timings/cargo-timing.html b/.cargo/cargo-timings/cargo-timing.html deleted file mode 100644 index 3ee32c4..0000000 --- a/.cargo/cargo-timings/cargo-timing.html +++ /dev/null @@ -1,39437 +0,0 @@ - - - - Cargo Build Timings — bot 0.1.0, cron_scheduler 0.1.0, clickhouse_pool 0.1.0, database 0.1.0, cli 0.1.0, api 0.1.0, config 0.1.0, tool_tracing 0.1.0 - - - - - -

Cargo Build Timings

-See Documentation - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Targets:bot 0.1.0 (lib)
cron_scheduler 0.1.0 (lib)
clickhouse_pool 0.1.0 (lib)
database 0.1.0 (lib)
cli 0.1.0 (bin "cli")
api 0.1.0 (lib)
config 0.1.0 (lib)
tool_tracing 0.1.0 (lib)
Profile:dev
Fresh units:0
Dirty units:410
Total units:410
Max concurrency:16 (jobs=16 ncpu=16)
Build start:2025-06-03T13:17:47.089055908Z
Total time:1054.1s (17m 34.1s)
rustc:rustc 1.87.0 (17067e9ac 2025-05-09)
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
- - - - - - - - - - - - - - -
- -
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UnitTotalCodegenFeatures
1.bot v0.1.0973.8s120.4s (12%)
2.serenity v0.12.451.3s24.7s (48%)builder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
3.zstd-sys v2.0.15+zstd.1.5.7 build script (run)48.9slegacy, std, zdict_builder
4.protobuf v3.7.226.0s21.8s (84%)default
5.opentelemetry_sdk v0.29.021.9s18.4s (84%)default, experimental_async_runtime, glob, internal-logs, logs, metrics, percent-encoding, rand, rt-tokio, serde_json, tokio, tokio-stream, trace, tracing
6.rustls v0.22.420.8s17.9s (86%)default, log, logging, ring, tls12
7.reqwest v0.11.2719.7s18.0s (91%)__rustls, __tls, hyper-rustls, mime_guess, multipart, rustls, rustls-tls, rustls-tls-webpki-roots, stream, tokio-rustls, tokio-util, wasm-streams, webpki-roots
8.tokio v1.45.119.5s14.2s (73%)bytes, default, fs, io-std, io-util, libc, macros, mio, net, parking_lot, rt, rt-multi-thread, signal, signal-hook-registry, socket2, sync, time, tokio-macros
9.regex-automata v0.4.918.3s15.3s (84%)alloc, dfa-onepass, hybrid, meta, nfa-backtrack, nfa-pikevm, nfa-thompson, perf-inline, perf-literal, perf-literal-multisubstring, perf-literal-substring, std, syntax, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment, unicode-word-boundary
10.rustls v0.21.1218.0s15.6s (87%)dangerous_configuration, default, log, logging, tls12
11.reqwest v0.12.1916.5s14.9s (91%)blocking
12.cli v0.1.0 bin "cli"14.9s
13.clickhouse v0.13.314.6s13.3s (91%)chrono, default, lz4, native-tls, uuid
14.h2 v0.3.2614.0s9.1s (65%)
15.h2 v0.4.1014.0s9.0s (64%)
16.tonic v0.12.313.7s11.4s (83%)channel, codegen, default, prost, router, server, transport
17.tokio-cron-scheduler v0.14.012.9s10.7s (83%)default, signal, tracing-subscriber
18.regex-syntax v0.8.511.4s9.1s (80%)default, std, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
19.aho-corasick v1.1.311.4s10.1s (88%)perf-literal, std
20.actix-server v2.6.011.2s10.1s (90%)default
21.prometheus v0.14.010.9s9.8s (90%)default, protobuf
22.tool_tracing v0.1.010.7s9.8s (91%)
23.toml_edit v0.22.2610.6s8.3s (79%)display, parse, serde
24.hyper v0.14.3210.4s6.4s (62%)client, h2, http1, http2, runtime, socket2, tcp
25.regex-syntax v0.6.299.8s7.9s (80%)default, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
26.tracing-subscriber v0.3.199.7s8.1s (83%)alloc, ansi, default, env-filter, fmt, matchers, nu-ansi-term, once_cell, regex, registry, sharded-slab, smallvec, std, thread_local, time, tracing, tracing-log
27.time v0.3.418.5s6.3s (75%)alloc, default, formatting, macros, parsing, serde, serde-well-known, std
28.utoipa v5.3.18.3s5.7s (68%)default, macros
29.openssl v0.10.738.1s4.9s (60%)default
30.ring v0.17.14 build script (run)7.9salloc, default, dev_urandom_fallback
31.opentelemetry-proto v0.29.07.1s5.8s (83%)gen-tonic, gen-tonic-messages, logs, metrics, prost, tonic, trace
32.axum v0.7.97.1s3.2s (46%)
33.hyper v1.6.06.9s5.0s (73%)client, default, http1, http2, server
34.encoding_rs v0.8.356.9s5.6s (82%)alloc, default
35.ring v0.17.146.8s4.9s (73%)alloc, default, dev_urandom_fallback
36.brotli v8.0.16.7s2.6s (39%)alloc-stdlib, default, std
37.opentelemetry-otlp v0.29.06.5s5.7s (87%)default, grpc-tonic, http, http-proto, internal-logs, logs, metrics, opentelemetry-http, prost, reqwest, reqwest-blocking-client, tokio, tonic, trace, tracing
38.utoipa-gen v5.3.16.2s
39.tungstenite v0.21.06.1s5.3s (87%)__rustls-tls, data-encoding, handshake, http, httparse, rustls, rustls-pki-types, sha1, url
40.actix-rt v2.10.05.8s5.5s (94%)
41.syn v2.0.1015.6s1.6s (28%)clone-impls, default, derive, extra-traits, fold, full, parsing, printing, proc-macro, visit, visit-mut
42.regex-automata v0.1.105.6s4.7s (85%)default, regex-syntax, std
43.chrono v0.4.415.6s4.1s (73%)alloc, android-tzdata, clock, default, iana-time-zone, js-sys, now, oldtime, serde, std, wasm-bindgen, wasmbind, winapi, windows-link
44.poise v0.6.15.6s3.3s (60%)cache, chrono, default, handle_panics
45.brotli-decompressor v5.0.05.3s4.3s (82%)alloc-stdlib, std
46.opentelemetry v0.29.14.9s4.0s (81%)default, futures, futures-core, futures-sink, internal-logs, logs, metrics, pin-project-lite, thiserror, trace, tracing
47.iri-string v0.7.84.7s2.6s (56%)alloc, default, std
48.hyper-util v0.1.134.6s2.6s (57%)client, client-legacy, client-proxy, default, http1, http2, server, server-auto, service, tokio
49.actix-web v4.11.04.4s2.2s (51%)__compress, compat, compat-routing-macros-force-pub, compress-brotli, compress-gzip, compress-zstd, cookies, default, http2, macros, unicode
50.data-encoding v2.9.04.3s3.9s (90%)alloc, default, std
51.icu_locale_core v2.0.04.3s3.6s (84%)zerovec
52.idna v1.0.34.1s3.7s (91%)alloc, compiled_data, std
53.regex-lite v0.1.64.0s3.4s (85%)default, std, string
54.serde_json v1.0.1403.7s2.6s (71%)default, std
55.url v2.5.43.6s3.0s (82%)default, serde, std
56.serde_derive v1.0.2193.6sdefault
57.futures-util v0.3.313.6s0.5s (15%)alloc, async-await, async-await-macro, channel, default, futures-channel, futures-io, futures-macro, futures-sink, io, memchr, sink, slab, std
58.toml v0.8.223.6s3.0s (85%)default, display, parse
59.actix-http v3.11.03.4s2.1s (60%)__compress, compress-brotli, compress-gzip, compress-zstd, default, http2, ws
60.http v0.2.123.4s2.4s (70%)
61.axum-core v0.4.53.4s1.2s (36%)
62.derive_more-impl v2.0.13.2sas_ref, default, deref, deref_mut, display, error, from
63.serde v1.0.2193.1s0.2s (8%)alloc, default, derive, serde_derive, std
64.rustls-webpki v0.102.83.1s2.5s (82%)alloc, ring, std
65.http v1.3.13.0s2.1s (70%)default, std
66.actix-router v0.5.32.9s2.4s (80%)http, unicode
67.serde v1.0.2192.9s0.1s (4%)default, std
68.darling_core v0.20.112.8s1.3s (46%)strsim, suggestions
69.syn v1.0.1092.8s0.9s (30%)clone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
70.tracing-opentelemetry v0.30.02.6s2.2s (85%)default, metrics, smallvec, tracing-log
71.rustls-webpki v0.101.72.6s2.1s (80%)alloc, default, std
72.winnow v0.7.102.6s0.5s (18%)alloc, default, std
73.miniz_oxide v0.8.82.6s2.1s (81%)with-alloc
74.config v0.1.02.4s1.8s (76%)
75.icu_properties v2.0.12.3s1.2s (51%)compiled_data
76.ipnet v2.11.02.3s2.0s (86%)default, std
77.regex v1.11.12.2s1.7s (78%)default, perf, perf-backtrack, perf-cache, perf-dfa, perf-inline, perf-literal, perf-onepass, std, unicode, unicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment
78.time-macros v0.2.222.2sformatting, parsing, serde
79.opentelemetry-http v0.29.02.2s1.8s (84%)default, internal-logs, reqwest, tracing
80.icu_normalizer v2.0.02.1s1.7s (80%)compiled_data
81.poise_macros v0.6.12.0s
82.cookie v0.16.22.0s1.7s (85%)percent-encode, percent-encoding
83.derivative v2.2.01.9s
84.zerocopy v0.8.251.9s0.1s (4%)simd
85.prost-derive v0.13.51.9s
86.memchr v2.7.41.9s1.4s (72%)alloc, default, std
87.cc v1.2.251.8s0.8s (45%)parallel
88.language-tags v0.3.21.8s1.2s (64%)
89.database v0.1.01.7s0.8s (44%)
90.glob v0.3.21.7s1.4s (85%)
91.croner v2.1.01.7s1.4s (83%)
92.socket2 v0.5.101.7s1.3s (80%)all
93.protobuf-support v3.7.21.7s1.4s (83%)
94.parking_lot v0.12.41.6s1.4s (87%)default
95.tracing-log v0.1.41.6s1.3s (84%)default, log-tracer, std, trace-logger
96.tokio-util v0.7.151.6s0.8s (54%)codec, default, io
97.itertools v0.14.01.6s0.1s (5%)default, use_alloc, use_std
98.tracing-attributes v0.1.281.6s
99.tracing-core v0.1.331.6s1.2s (76%)default, once_cell, std
100.tower v0.4.131.5s0.2s (14%)__common, balance, buffer, discover, futures-core, futures-util, indexmap, limit, load, make, pin-project, pin-project-lite, rand, ready-cache, slab, tokio, tokio-util, tracing, util
101.openssl-sys v0.9.1091.5s0.1s (10%)
102.thiserror-impl v2.0.121.5s
103.clickhouse_pool v0.1.01.5s0.7s (48%)
104.bytes v1.10.11.5s0.9s (61%)default, std
105.zerovec-derive v0.11.11.4s
106.zerofrom-derive v0.1.61.4s
107.rustls-pki-types v1.12.01.4s1.0s (70%)alloc, default, std
108.api v0.1.01.4s0.9s (67%)
109.num_cpus v1.17.01.4s1.1s (82%)
110.thiserror-impl v1.0.691.4s
111.mio v1.0.41.4s1.0s (70%)default, log, net, os-ext, os-poll
112.pin-project-internal v1.1.101.4s
113.zerovec v0.11.21.4s0.1s (7%)alloc, derive, yoke
114.tower-http v0.6.51.4s1.0s (75%)follow-redirect, futures-util, iri-string, tower
115.rand v0.8.51.3s0.5s (38%)alloc, default, getrandom, libc, rand_chacha, small_rng, std, std_rng
116.async-trait v0.1.881.2s
117.yoke-derive v0.8.01.1s
118.num-derive v0.4.21.1s
119.icu_collections v2.0.01.1s0.7s (67%)
120.deranged v0.4.01.0s0.1s (5%)alloc, powerfmt, serde, std
121.signal-hook-registry v1.4.51.0s0.8s (81%)
122.rand v0.9.11.0s0.3s (31%)alloc, default, os_rng, small_rng, std, std_rng, thread_rng
123.futures-macro v0.3.311.0s
124.actix-web-codegen v4.3.01.0scompat-routing-macros-force-pub
125.native-tls v0.2.141.0s0.7s (73%)
126.utoipa-actix-web v0.1.21.0s0.9s (87%)
127.rand_chacha v0.3.11.0s0.8s (80%)std
128.mime_guess v2.0.51.0s0.6s (63%)default, rev-mappings
129.anyhow v1.0.981.0s0.7s (75%)default, std
130.value-bag v1.11.11.0s0.6s (61%)alloc, error, inline-i128, serde, serde1, std, value-bag-serde1
131.actix-cors v0.7.11.0s0.8s (77%)
132.serde_derive_internals v0.29.11.0s0.4s (43%)
133.rand_chacha v0.9.01.0s0.7s (73%)std
134.strfmt v0.2.40.9s0.7s (75%)
135.regex-lite v0.1.60.9s0.3s (36%)default, std, string
136.displaydoc v0.2.50.9s
137.sharded-slab v0.1.70.9s0.2s (18%)
138.erased-serde v0.4.60.9s0.4s (39%)alloc, std
139.iana-time-zone v0.1.630.9s0.8s (86%)fallback
140.indexmap v2.9.00.9s0.1s (6%)default, serde, std
141.hashbrown v0.15.30.9s0.1s (7%)
142.writeable v0.6.10.9s0.7s (78%)
143.futures-executor v0.3.310.9s0.7s (83%)default, std
144.tracing-actix-web v0.7.180.9s0.6s (64%)default, emit_event_on_error, opentelemetry_0_29, opentelemetry_0_29_pkg, tracing-opentelemetry_0_30_pkg
145.actix-web-prom v0.10.00.9s0.7s (78%)
146.tokio-macros v2.5.00.9s
147.hashbrown v0.14.50.9s0.1s (10%)
148.num-traits v0.2.190.8s0.1s (16%)default, std
149.flate2 v1.1.10.8s0.4s (45%)any_impl, default, miniz_oxide, rust_backend
150.dashmap v5.5.30.8s0.4s (45%)serde
151.uuid v1.17.00.8s0.5s (60%)default, rng, serde, std, v4
152.generic-array v0.14.70.8s0.0s (6%)more_lengths
153.tracing-bunyan-formatter v0.3.100.8s0.5s (56%)default, gethostname, hostname
154.nu-ansi-term v0.46.00.8s0.6s (72%)
155.matchit v0.7.30.8s0.5s (63%)default
156.base64 v0.21.70.8s0.5s (64%)alloc, default, std
157.typenum v1.18.00.8s0.0s (4%)
158.async-stream-impl v0.3.60.8s
159.vcpkg v0.2.150.8s0.4s (57%)
160.proc-macro2 v1.0.950.7s0.3s (41%)default, proc-macro
161.libc v0.2.1720.7s0.1s (7%)default, std
162.hashbrown v0.12.30.7s0.0s (5%)raw
163.mime v0.3.170.7s0.5s (74%)
164.bytes v1.10.10.7s0.1s (20%)
165.log v0.4.270.7s0.4s (50%)kv, kv_serde, kv_std, serde, std, value-bag
166.ring v0.17.14 build script0.7salloc, default, dev_urandom_fallback
167.mime_guess v2.0.5 build script0.7sdefault, rev-mappings
168.libc v0.2.1720.7s0.1s (9%)default, std
169.darling_macro v0.20.110.7s
170.actix-router v0.5.30.7s0.2s (34%)
171.base64 v0.22.10.7s0.4s (53%)alloc, default, std
172.httparse v1.10.10.7s0.4s (60%)default, std
173.openssl-sys v0.9.109 build script0.7s
174.serde_repr v0.1.200.6s
175.bstr v1.12.00.6s0.3s (45%)
176.actix-macros v0.2.40.6s
177.prost v0.13.50.6s0.2s (25%)default, derive, std
178.pkg-config v0.3.320.6s0.3s (57%)
179.cron_scheduler v0.1.00.6s0.2s (31%)
180.synstructure v0.13.20.6s0.3s (47%)default, proc-macro
181.rustversion v1.0.210.6s
182.tokio-stream v0.1.170.6s0.1s (17%)default, net, time
183.clickhouse-derive v0.2.00.6s
184.indexmap v1.9.30.6s0.0s (8%)
185.rustls-pemfile v1.0.40.6s0.4s (81%)
186.actix-codec v0.5.20.6s0.3s (52%)
187.sha1 v0.10.60.5s0.4s (67%)default, std
188.tower v0.5.20.5s0.1s (11%)__common, futures-core, futures-util, pin-project-lite, sync_wrapper, timeout, tokio, util
189.openssl-macros v0.1.10.5s
190.zerotrie v0.2.20.5s0.2s (39%)yoke, zerofrom
191.tracing v0.1.410.5s0.3s (63%)attributes, default, log, std, tracing-attributes
192.icu_provider v2.0.00.5s0.2s (42%)baked, zerotrie
193.parking_lot_core v0.9.110.5s0.3s (60%)
194.sealed v0.6.00.5s
195.httpdate v1.0.30.5s0.4s (77%)
196.tracing-log v0.2.00.5s0.3s (72%)log-tracer, std
197.toml_datetime v0.6.90.5s0.3s (54%)serde
198.zstd-sys v2.0.15+zstd.1.5.7 build script0.5slegacy, std, zdict_builder
199.tracing-core v0.1.330.5s0.1s (26%)
200.actix-service v2.0.30.5s0.0s (9%)
201.thread_local v1.1.80.4s0.2s (57%)
202.httparse v1.10.1 build script0.4sdefault, std
203.ryu v1.0.200.4s0.3s (69%)
204.ppv-lite86 v0.2.210.4s0.0s (7%)simd, std
205.zerocopy v0.8.25 build script0.4ssimd
206.cityhash-rs v1.0.10.4s0.3s (68%)
207.tokio-tungstenite v0.21.00.4s0.0s (8%)__rustls-tls, connect, default, handshake, rustls, rustls-pki-types, rustls-tls-webpki-roots, stream, tokio-rustls, webpki-roots
208.form_urlencoded v1.2.10.4s0.3s (75%)alloc, default, std
209.anyhow v1.0.980.4s0.2s (39%)default, std
210.typenum v1.18.0 build script0.4s
211.syn v1.0.109 build script0.4sclone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
212.protobuf v3.7.2 build script0.4sdefault
213.bitflags v2.9.10.4s0.2s (64%)
214.jobserver v0.1.330.4s0.1s (40%)
215.autocfg v1.4.00.3s0.2s (50%)
216.litemap v0.8.00.3s0.0s (14%)alloc
217.quote v1.0.400.3s0.1s (32%)default, proc-macro
218.libc v0.2.172 build script0.3sdefault, std
219.sct v0.7.10.3s0.2s (69%)
220.crc32fast v1.4.20.3s0.2s (55%)default, std
221.byteorder v1.5.00.3s0.0s (9%)default, std
222.deadpool v0.12.20.3s0.1s (18%)default, managed, unmanaged
223.unicase v2.8.10.3s0.2s (55%)
224.anyhow v1.0.98 build script0.3sdefault, std
225.percent-encoding v2.3.10.3s0.2s (67%)alloc, default, std
226.thiserror v2.0.12 build script0.3sdefault, std
227.thiserror v1.0.69 build script0.3s
228.serde_urlencoded v0.7.10.3s0.1s (26%)
229.rustversion v1.0.21 build script0.3s
230.getrandom v0.3.3 build script0.3sstd
231.openssl-probe v0.1.60.3s0.2s (76%)
232.getrandom v0.2.160.3s0.2s (53%)std
233.arrayvec v0.7.60.3s0.0s (12%)default, serde, std
234.rand_core v0.9.30.3s0.1s (31%)os_rng, std
235.lock_api v0.4.130.3s0.0s (14%)atomic_usize, default
236.getrandom v0.3.30.3s0.2s (54%)std
237.http-body v0.4.60.3s0.0s (13%)
238.serde v1.0.219 build script0.3sdefault, std
239.powerfmt v0.2.00.3s0.1s (51%)
240.version_check v0.9.50.3s0.1s (45%)
241.proc-macro2 v1.0.95 build script0.3sdefault, proc-macro
242.rand_core v0.6.40.3s0.1s (43%)alloc, getrandom, std
243.lz4_flex v0.11.30.3s0.0s (16%)std
244.once_cell v1.21.30.3s0.1s (34%)alloc, default, race, std
245.strsim v0.11.10.3s0.1s (37%)
246.tracing v0.1.410.3s0.1s (27%)log
247.hyper-tls v0.6.00.3s0.1s (54%)
248.serenity v0.12.4 build script0.3sbuilder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
249.tokio-rustls v0.24.10.3s0.0s (8%)default, logging, tls12
250.lock_api v0.4.13 build script0.3satomic_usize, default
251.native-tls v0.2.14 build script0.3s
252.http-body-util v0.1.30.3s0.0s (14%)default
253.tower-layer v0.3.30.3s0.0s (16%)
254.serde v1.0.219 build script0.3salloc, default, derive, serde_derive, std
255.ahash v0.8.120.3s0.0s (15%)default, getrandom, runtime-rng, std
256.prometheus v0.14.0 build script0.3sdefault, protobuf
257.num-traits v0.2.19 build script0.3sdefault, std
258.typeid v1.0.3 build script0.3s
259.foldhash v0.1.50.2s0.1s (50%)default, std
260.slab v0.4.90.2s0.0s (12%)default, std
261.yoke v0.8.00.2s0.0s (14%)alloc, derive, zerofrom
262.tokio-rustls v0.25.00.2s0.0s (14%)default, logging, ring, tls12
263.tokio-cron-scheduler v0.14.0 build script0.2sdefault, signal, tracing-subscriber
264.parking_lot_core v0.9.11 build script0.2s
265.icu_normalizer_data v2.0.0 build script0.2s
266.tinystr v0.8.10.2s0.1s (27%)alloc, zerovec
267.icu_properties_data v2.0.10.2s0.0s (13%)
268.indexmap v1.9.3 build script0.2s
269.slab v0.4.9 build script0.2sdefault, std
270.futures-io v0.3.310.2s0.1s (64%)std
271.toml_write v0.1.10.2s0.1s (32%)alloc, default, std
272.digest v0.10.70.2s0.0s (16%)alloc, block-buffer, core-api, default, std
273.unicase v2.8.10.2s0.0s (21%)
274.futures-channel v0.3.310.2s0.0s (19%)alloc, default, futures-sink, sink, std
275.utf-8 v0.7.60.2s0.1s (42%)
276.serde_fmt v1.0.30.2s0.1s (39%)
277.smallvec v1.15.00.2s0.0s (15%)const_generics, const_new
278.bytestring v1.4.00.2s0.1s (37%)
279.zstd-safe v7.2.4 build script0.2sarrays, legacy, std, zdict_builder
280.serde_json v1.0.140 build script0.2sdefault, std
281.hyper-rustls v0.24.20.2s0.1s (38%)
282.log v0.4.270.2s0.0s (21%)
283.zstd v0.13.30.2s0.1s (37%)arrays, default, legacy, zdict_builder
284.either v1.15.00.2s0.0s (7%)std, use_std
285.ahash v0.8.12 build script0.2sdefault, getrandom, runtime-rng, std
286.openssl v0.10.73 build script0.2sdefault
287.icu_properties_data v2.0.1 build script0.2s
288.rustls v0.21.12 build script0.2sdangerous_configuration, default, log, logging, tls12
289.generic-array v0.14.7 build script0.2smore_lengths
290.cookie v0.16.2 build script0.2spercent-encode, percent-encoding
291.hyper-timeout v0.5.20.2s0.0s (10%)
292.zeroize v1.8.10.2s0.1s (28%)alloc, default
293.tokio-native-tls v0.3.10.2s0.0s (24%)
294.want v0.3.10.2s0.1s (47%)
295.adler2 v2.0.00.2s0.1s (58%)
296.subtle v2.6.10.2s0.0s (20%)
297.rustls v0.22.4 build script0.2sdefault, log, logging, ring, tls12
298.gethostname v0.2.30.2s0.1s (58%)
299.utf8_iter v1.0.40.2s0.1s (44%)
300.zerofrom v0.1.60.2s0.0s (14%)alloc, derive
301.potential_utf v0.1.20.2s0.1s (32%)zerovec
302.actix-utils v3.0.10.1s0.1s (41%)
303.shlex v1.3.00.1s0.0s (24%)default, std
304.idna_adapter v1.2.10.1s0.0s (32%)compiled_data
305.alloc-stdlib v0.2.20.1s0.0s (16%)
306.webpki-roots v1.0.00.1s0.0s (17%)
307.async-stream v0.3.60.1s0.0s (15%)
308.pin-project v1.1.100.1s0.0s (17%)
309.matchers v0.1.00.1s0.0s (33%)
310.futures-task v0.3.310.1s0.0s (19%)alloc, std
311.serde_spanned v0.6.80.1s0.1s (37%)serde
312.bytestring v1.4.00.1s0.0s (21%)
313.num-traits v0.2.19 build script (run)0.1sdefault, std
314.zstd-safe v7.2.40.1s0.1s (39%)arrays, legacy, std, zdict_builder
315.secrecy v0.8.00.1s0.0s (32%)alloc, default, serde
316.alloc-no-stdlib v2.0.40.1s0.0s (16%)
317.futures-core v0.3.310.1s0.1s (52%)alloc, default, std
318.block-buffer v0.10.40.1s0.0s (25%)
319.http-body v1.0.10.1s0.0s (23%)
320.indexmap v1.9.3 build script (run)0.1s
321.crypto-common v0.1.60.1s0.0s (29%)std
322.atomic-waker v1.1.20.1s0.1s (48%)
323.derive_more v2.0.10.1s0.0s (38%)as_ref, default, deref, deref_mut, display, error, from, std
324.num-conv v0.1.00.1s0.0s (22%)
325.thiserror v2.0.12 build script (run)0.1sdefault, std
326.untrusted v0.9.00.1s0.0s (25%)
327.webpki-roots v0.25.40.1s0.0s (14%)
328.local-channel v0.1.50.1s0.0s (22%)
329.proc-macro2 v1.0.95 build script (run)0.1sdefault, proc-macro
330.deadpool-runtime v0.1.40.1s0.0s (30%)
331.fxhash v0.2.10.1s0.0s (34%)
332.typemap_rev v0.3.00.1s0.0s (26%)
333.num-conv v0.1.00.1s0.0s (17%)
334.replace_with v0.1.80.1s0.0s (32%)default, std
335.try-lock v0.2.50.1s0.0s (25%)
336.sync_wrapper v1.0.20.1s0.0s (14%)futures, futures-core
337.time-core v0.1.40.1s0.0s (30%)
338.itoa v1.0.150.1s0.0s (20%)
339.time-core v0.1.40.1s0.0s (35%)
340.thiserror v2.0.120.1s0.0s (29%)default, std
341.unicode-xid v0.2.60.1s0.0s (26%)default
342.impl-more v0.1.90.1s0.0s (28%)
343.pin-project-lite v0.2.160.1s0.0s (17%)
344.serde_cow v0.1.20.1s0.0s (36%)
345.ident_case v1.0.10.1s0.0s (27%)
346.slab v0.4.9 build script (run)0.1sdefault, std
347.local-waker v0.1.40.1s0.0s (58%)
348.futures-sink v0.3.310.1s0.0s (24%)alloc, default, std
349.lazy_static v1.5.00.1s0.0s (34%)
350.thiserror v1.0.690.1s0.0s (27%)
351.sync_wrapper v0.1.20.1s0.0s (34%)
352.utoipa-scalar v0.3.00.1s0.0s (16%)actix-web
353.zstd-sys v2.0.15+zstd.1.5.70.1s0.0s (41%)legacy, std, zdict_builder
354.tower-service v0.3.30.1s0.0s (44%)
355.anyhow v1.0.98 build script (run)0.1sdefault, std
356.typeid v1.0.30.1s0.0s (40%)
357.icu_normalizer_data v2.0.00.1s0.0s (38%)
358.mutually_exclusive_features v0.1.00.1s0.0s (34%)
359.overload v0.1.10.1s0.0s (28%)
360.lock_api v0.4.13 build script (run)0.1satomic_usize, default
361.fnv v1.0.70.1s0.0s (40%)default, std
362.anyhow v1.0.98 build script (run)0.1sdefault, std
363.cpufeatures v0.2.170.1s0.0s (35%)
364.trim-in-place v0.1.70.1s0.0s (31%)
365.scopeguard v1.2.00.1s0.0s (33%)
366.stable_deref_trait v1.2.00.1s0.0s (36%)alloc
367.futures v0.3.310.1s0.0s (27%)alloc, async-await, default, executor, futures-executor, std
368.webpki-roots v0.26.110.1s0.0s (33%)
369.value-bag-serde1 v1.11.10.1s0.0s (35%)alloc, std
370.cfg-if v1.0.00.1s0.0s (30%)
371.unicode-ident v1.0.180.1s0.0s (27%)
372.fnv v1.0.70.1s0.0s (27%)default, std
373.openssl-sys v0.9.109 build script (run)0.0s
374.thiserror v1.0.69 build script (run)0.0s
375.static_assertions v1.1.00.0s0.0s (21%)
376.foreign-types-shared v0.1.10.0s0.0s (37%)
377.darling v0.20.110.0s0.0s (20%)default, suggestions
378.foreign-types v0.3.20.0s0.0s (37%)
379.equivalent v1.0.20.0s0.0s (39%)
380.pin-project-lite v0.2.160.0s0.0s (45%)
381.libc v0.2.172 build script (run)0.0sdefault, std
382.pin-utils v0.1.00.0s0.0s (47%)
383.ahash v0.8.12 build script (run)0.0sdefault, getrandom, runtime-rng, std
384.zerocopy v0.8.25 build script (run)0.0ssimd
385.cfg-if v1.0.00.0s0.0s (69%)
386.typeid v1.0.3 build script (run)0.0s
387.generic-array v0.14.7 build script (run)0.0smore_lengths
388.serde v1.0.219 build script (run)0.0salloc, default, derive, serde_derive, std
389.httparse v1.10.1 build script (run)0.0sdefault, std
390.rustversion v1.0.21 build script (run)0.0s
391.cookie v0.16.2 build script (run)0.0spercent-encode, percent-encoding
392.libc v0.2.172 build script (run)0.0sdefault, std
393.serde v1.0.219 build script (run)0.0sdefault, std
394.syn v1.0.109 build script (run)0.0sclone-impls, default, derive, extra-traits, parsing, printing, proc-macro, quote, visit
395.mime_guess v2.0.5 build script (run)0.0sdefault, rev-mappings
396.typenum v1.18.0 build script (run)0.0s
397.icu_normalizer_data v2.0.0 build script (run)0.0s
398.icu_properties_data v2.0.1 build script (run)0.0s
399.getrandom v0.3.3 build script (run)0.0sstd
400.rustls v0.22.4 build script (run)0.0sdefault, log, logging, ring, tls12
401.serde_json v1.0.140 build script (run)0.0sdefault, std
402.parking_lot_core v0.9.11 build script (run)0.0s
403.native-tls v0.2.14 build script (run)0.0s
404.rustls v0.21.12 build script (run)0.0sdangerous_configuration, default, log, logging, tls12
405.openssl v0.10.73 build script (run)0.0sdefault
406.serenity v0.12.4 build script (run)0.0sbuilder, bytes, cache, chrono, client, collector, dashmap, flate2, framework, fxhash, gateway, http, mime_guess, model, parking_lot, percent-encoding, reqwest, rustls_backend, tokio-tungstenite, typemap_rev, utils
407.tokio-cron-scheduler v0.14.0 build script (run)0.0sdefault, signal, tracing-subscriber
408.prometheus v0.14.0 build script (run)0.0sdefault, protobuf
409.protobuf v3.7.2 build script (run)0.0sdefault
410.zstd-safe v7.2.4 build script (run)0.0sarrays, legacy, std, zdict_builder
- - - diff --git a/Cargo.lock b/Cargo.lock index 086c627..040cc6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -597,6 +597,28 @@ dependencies = [ "windows-link", ] +[[package]] +name = "chrono-tz" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efdce149c370f133a071ca8ef6ea340b7b88748ab0810097a9e2976eaa34b4f3" +dependencies = [ + "chrono", + "chrono-tz-build", + "phf", + "serde", +] + +[[package]] +name = "chrono-tz-build" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f10f8c9340e31fc120ff885fcdb54a0b48e474bbd77cab557f0c30a3e569402" +dependencies = [ + "parse-zoneinfo", + "phf_codegen", +] + [[package]] name = "cityhash-rs" version = "1.0.1" @@ -738,6 +760,9 @@ name = "cron_scheduler" version = "0.1.0" dependencies = [ "chrono", + "chrono-tz", + "clickhouse", + "clickhouse_pool", "config", "database", "poise", @@ -2027,12 +2052,59 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "parse-zoneinfo" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24" +dependencies = [ + "regex", +] + [[package]] name = "percent-encoding" version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_shared", +] + +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared", + "rand 0.8.5", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project" version = "1.1.10" @@ -2779,6 +2851,12 @@ dependencies = [ "libc", ] +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + [[package]] name = "skeptic" version = "0.13.7" diff --git a/libs/cron_scheduler/Cargo.toml b/libs/cron_scheduler/Cargo.toml index eca852c..b3a5409 100644 --- a/libs/cron_scheduler/Cargo.toml +++ b/libs/cron_scheduler/Cargo.toml @@ -9,6 +9,9 @@ poise = { workspace = true } tracing = { workspace = true } uuid = { workspace = true } chrono = { workspace = true } +chrono-tz = { version = "0.10", features = ["serde"] } +clickhouse_pool = { path = "../../libs/clickhouse_pool" } +clickhouse = { workspace = true } database = { path = "../../libs/database" } config = { path = "../../libs/config" } tokio-cron-scheduler = { version = "0.14", features = [ diff --git a/libs/cron_scheduler/src/lib.rs b/libs/cron_scheduler/src/lib.rs index 0fb25aa..ebe6412 100644 --- a/libs/cron_scheduler/src/lib.rs +++ b/libs/cron_scheduler/src/lib.rs @@ -1,3 +1,9 @@ +use chrono_tz::Europe; +use clickhouse_pool::{pool_manager::PoolManager, traits::Model}; +use database::{ + trivial::{Trivial, TrivialStatus}, + trivial_round::TrivialRound, +}; use poise::serenity_prelude::Http; use std::{ collections::HashMap, @@ -5,8 +11,8 @@ use std::{ sync::Arc, }; use tokio::sync::RwLock; -use tokio_cron_scheduler::JobScheduler; -use tracing::{error, info, instrument}; +use tokio_cron_scheduler::{job::JobLocked, Job, JobScheduler}; +use tracing::{debug, error, info, info_span, instrument, Instrument}; use uuid::Uuid; #[derive(Debug)] @@ -105,18 +111,148 @@ impl ScheduleJob { } } - #[instrument(skip(self, http), level = "info")] - pub async fn add_trivial_cron_job( + #[instrument(skip(self, http, manager), level = "info")] + pub async fn add_day_end_trivial_cron_job( &mut self, - server_id: u64, + guild_id: u64, channel_id: u64, cron_expression: String, + manager: Arc, http: &Http, ) -> Result { - let _http = Arc::new(Http::new(http.token())); + let http = Arc::new(Http::new(http.token())); // Create a new job with the provided cron expression - Err(()) + let job = match Job::new_cron_job_async_tz( + cron_expression.as_str(), + Europe::Paris, + move |id, _l| { + Box::pin( + { + let http = http.clone(); + let manager = manager.clone(); + Box::pin(async move { + info!( + id = id.to_string(), + guild_id = guild_id, + channel_id = channel_id, + "Cron job triggered for guild: {}, channel: {}", + guild_id, + channel_id + ); + // Here you can add the logic to be executed when the cron job is triggered + // For example, sending a message to the channel + use poise::serenity_prelude::{ChannelId, CreateMessage}; + + let search_query = Trivial::build_select_query( + Some(&format!( + "channel_id = {} and guild_id = {}", + channel_id, guild_id + )), + None, + None, + ); + let trivial_exists: Trivial = match manager + .execute_select_with_retry::(&search_query).await{ + Ok(trivia) => { + if trivia.is_empty() { + info!("No trivia game found in this channel."); + return; + } + if trivia.len() > 1 { + error!("Multiple trivia games found in this channel, using the first one."); + } + trivia[0].clone() + } + Err(e) => { + error!("Error fetching trivia game: {:?}", e); + return; + } + }; + debug!("Trivial game found: {:?}", trivial_exists); + if trivial_exists.status != TrivialStatus::Started { + info!("Trivia game is not started, skipping message."); + return; + } + let trivia_round_query = TrivialRound::build_select_query( + Some(&format!( + "trivial_id = '{}' and finished = false", + trivial_exists.id + )), + None, + None, + ); + let trivia_round: TrivialRound = match manager + .execute_select_with_retry::(&trivia_round_query) + .await{ + Ok(rounds) => { + if rounds.is_empty() { + info!("No trivia rounds found for the current game."); + return; + } + if rounds.len() > 1 { + error!("Multiple trivia rounds found, using the first one."); + } + rounds[0].clone() + }, + Err(e) => { + error!("Error fetching trivia rounds: {:?}", e); + return; + } + }; + debug!("Trivial round found: {:?}", trivia_round.id); + // TODO : Send a message to end the trivia round and that the bot is processing the results + // TODO : Add score to the user + // TODO : Update the trivial round to finished + // TODO : Congratulate the winner and delete te processing message + // TODO : Send message see you soon + if let Err(e) = ChannelId::new(channel_id) + .send_message( + &http, + CreateMessage::new().content("Cron job executed"), + ) + .await + { + error!("Failed to send message: {:?}", e); + } + }) + } + .instrument(info_span!( + "trivial_cron_job", + id = id.to_string(), + guild_id = guild_id, + channel_id = channel_id, + )), + ) + }, + ) { + Ok(job) => job, + Err(e) => { + error!("Error creating cron job: {:?}", e); + return Err(()); + } + }; + + self.inject_job(job, (guild_id, channel_id)).await } + + #[instrument(skip(self, job), level = "info")] + pub async fn inject_job(&mut self, job: JobLocked, id: (u64, u64)) -> Result { + match self.scheduler.add(job.clone()).await { + Ok(job_uuid) => { + info!(id = job_uuid.to_string(), "Cron job added successfully"); + { + let mut job_id = self.job_id.write().await; + job_id.insert(id, job_uuid); + } + Ok(job_uuid) + } + Err(e) => { + error!("Error adding cron job: {:?}", e); + return Err(()); + } + } + } + #[instrument(skip(self), level = "info")] pub async fn stop_scheduled_job( &mut self,