mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 10:25:01 +01:00
Optimize features
This commit is contained in:
parent
491eb1604f
commit
73098095a7
3 changed files with 38 additions and 20 deletions
23
Cargo.lock
generated
23
Cargo.lock
generated
|
|
@ -144,7 +144,6 @@ dependencies = [
|
|||
"percent-encoding",
|
||||
"pin-project-lite",
|
||||
"serde_core",
|
||||
"serde_json",
|
||||
"serde_path_to_error",
|
||||
"serde_urlencoded",
|
||||
"sync_wrapper",
|
||||
|
|
@ -458,7 +457,6 @@ dependencies = [
|
|||
"serde",
|
||||
"sqlx",
|
||||
"tempfile",
|
||||
"time",
|
||||
"tokio",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
|
|
@ -714,6 +712,25 @@ version = "0.32.3"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
|
||||
|
||||
[[package]]
|
||||
name = "h2"
|
||||
version = "0.4.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"
|
||||
dependencies = [
|
||||
"atomic-waker",
|
||||
"bytes",
|
||||
"fnv",
|
||||
"futures-core",
|
||||
"futures-sink",
|
||||
"http",
|
||||
"indexmap",
|
||||
"slab",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hashbrown"
|
||||
version = "0.15.5"
|
||||
|
|
@ -835,6 +852,7 @@ dependencies = [
|
|||
"bytes",
|
||||
"futures-channel",
|
||||
"futures-core",
|
||||
"h2",
|
||||
"http",
|
||||
"http-body",
|
||||
"httparse",
|
||||
|
|
@ -1729,6 +1747,7 @@ dependencies = [
|
|||
"base64",
|
||||
"bytes",
|
||||
"futures-core",
|
||||
"h2",
|
||||
"http",
|
||||
"http-body",
|
||||
"http-body-util",
|
||||
|
|
|
|||
23
Cargo.toml
23
Cargo.toml
|
|
@ -5,26 +5,29 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
askama = "0.14.0"
|
||||
axum = { version = "0.8.6", features = ["macros"] }
|
||||
axum = { version = "0.8.6", default-features = false, features = [
|
||||
"http1",
|
||||
"matched-path",
|
||||
"query",
|
||||
"tokio",
|
||||
"tower-log",
|
||||
"tracing",
|
||||
"macros",
|
||||
] }
|
||||
color-eyre = "0.6.3"
|
||||
futures = "0.3.30"
|
||||
jiff = "0.2.16"
|
||||
jsonwebtoken = { version = "9.3.1", features = [] }
|
||||
jsonwebtoken = { version = "9.3.1" }
|
||||
octocrab = "0.47.1"
|
||||
reqwest = { version = "0.12.7", features = [
|
||||
"rustls-tls",
|
||||
"http2",
|
||||
], default-features = false }
|
||||
serde = { version = "1.0.210", features = ["derive"] }
|
||||
sqlx = { version = "0.8.2", features = [
|
||||
"macros",
|
||||
"migrate",
|
||||
"runtime-tokio",
|
||||
"sqlite",
|
||||
] }
|
||||
sqlx = { version = "0.8.2", features = ["runtime-tokio", "sqlite"] }
|
||||
tempfile = "3.12.0"
|
||||
time = { version = "0.3.36", features = ["formatting", "macros", "parsing"] }
|
||||
tokio = { version = "1.40.0", features = ["full"] }
|
||||
tracing = "0.1.40"
|
||||
tracing = { version = "0.1.40", features = ["attributes"] }
|
||||
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
||||
|
||||
[build-dependencies]
|
||||
|
|
|
|||
12
src/web.rs
12
src/web.rs
|
|
@ -101,14 +101,10 @@ async fn web_build(State(state): State<AppState>, Query(query): Query<BuildQuery
|
|||
rustflags: build.rustflags,
|
||||
version: crate::VERSION,
|
||||
status: build.status,
|
||||
build_date: build.build_date.map(|build_date| {
|
||||
time::OffsetDateTime::from_unix_timestamp_nanos(build_date as i128 * 1000000)
|
||||
.map(|build_date| {
|
||||
build_date
|
||||
.format(&time::format_description::well_known::Rfc3339)
|
||||
.unwrap()
|
||||
})
|
||||
.unwrap()
|
||||
build_date: build.build_date.and_then(|build_date| {
|
||||
jiff::Timestamp::from_millisecond(build_date)
|
||||
.ok()
|
||||
.map(|build_date| build_date.to_string())
|
||||
}),
|
||||
build_duration_s: build
|
||||
.build_duration_ms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue