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",
|
"percent-encoding",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
"serde_core",
|
"serde_core",
|
||||||
"serde_json",
|
|
||||||
"serde_path_to_error",
|
"serde_path_to_error",
|
||||||
"serde_urlencoded",
|
"serde_urlencoded",
|
||||||
"sync_wrapper",
|
"sync_wrapper",
|
||||||
|
|
@ -458,7 +457,6 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"sqlx",
|
"sqlx",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"time",
|
|
||||||
"tokio",
|
"tokio",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
|
|
@ -714,6 +712,25 @@ version = "0.32.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7"
|
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]]
|
[[package]]
|
||||||
name = "hashbrown"
|
name = "hashbrown"
|
||||||
version = "0.15.5"
|
version = "0.15.5"
|
||||||
|
|
@ -835,6 +852,7 @@ dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-channel",
|
"futures-channel",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
|
"h2",
|
||||||
"http",
|
"http",
|
||||||
"http-body",
|
"http-body",
|
||||||
"httparse",
|
"httparse",
|
||||||
|
|
@ -1729,6 +1747,7 @@ dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
|
"h2",
|
||||||
"http",
|
"http",
|
||||||
"http-body",
|
"http-body",
|
||||||
"http-body-util",
|
"http-body-util",
|
||||||
|
|
|
||||||
23
Cargo.toml
23
Cargo.toml
|
|
@ -5,26 +5,29 @@ edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
askama = "0.14.0"
|
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"
|
color-eyre = "0.6.3"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
jiff = "0.2.16"
|
jiff = "0.2.16"
|
||||||
jsonwebtoken = { version = "9.3.1", features = [] }
|
jsonwebtoken = { version = "9.3.1" }
|
||||||
octocrab = "0.47.1"
|
octocrab = "0.47.1"
|
||||||
reqwest = { version = "0.12.7", features = [
|
reqwest = { version = "0.12.7", features = [
|
||||||
"rustls-tls",
|
"rustls-tls",
|
||||||
|
"http2",
|
||||||
], default-features = false }
|
], default-features = false }
|
||||||
serde = { version = "1.0.210", features = ["derive"] }
|
serde = { version = "1.0.210", features = ["derive"] }
|
||||||
sqlx = { version = "0.8.2", features = [
|
sqlx = { version = "0.8.2", features = ["runtime-tokio", "sqlite"] }
|
||||||
"macros",
|
|
||||||
"migrate",
|
|
||||||
"runtime-tokio",
|
|
||||||
"sqlite",
|
|
||||||
] }
|
|
||||||
tempfile = "3.12.0"
|
tempfile = "3.12.0"
|
||||||
time = { version = "0.3.36", features = ["formatting", "macros", "parsing"] }
|
|
||||||
tokio = { version = "1.40.0", features = ["full"] }
|
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"] }
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[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,
|
rustflags: build.rustflags,
|
||||||
version: crate::VERSION,
|
version: crate::VERSION,
|
||||||
status: build.status,
|
status: build.status,
|
||||||
build_date: build.build_date.map(|build_date| {
|
build_date: build.build_date.and_then(|build_date| {
|
||||||
time::OffsetDateTime::from_unix_timestamp_nanos(build_date as i128 * 1000000)
|
jiff::Timestamp::from_millisecond(build_date)
|
||||||
.map(|build_date| {
|
.ok()
|
||||||
build_date
|
.map(|build_date| build_date.to_string())
|
||||||
.format(&time::format_description::well_known::Rfc3339)
|
|
||||||
.unwrap()
|
|
||||||
})
|
|
||||||
.unwrap()
|
|
||||||
}),
|
}),
|
||||||
build_duration_s: build
|
build_duration_s: build
|
||||||
.build_duration_ms
|
.build_duration_ms
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue