From 55a5694ee29c6286ba29db9658f4dd9c9e0ead8e Mon Sep 17 00:00:00 2001 From: Vlad Pronsky Date: Sat, 12 Oct 2024 23:40:28 +0300 Subject: [PATCH] v0.5.0 --- .github/workflows/build.yml | 1 + Cargo.lock | 21 +++++++++------------ Cargo.toml | 20 ++++++++++---------- Makefile | 8 ++++++++ 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8aa61ab..3c8b6bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,7 @@ name: build on: push: + pull_request: jobs: build: diff --git a/Cargo.lock b/Cargo.lock index 928d5c1..21cf938 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -276,14 +276,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] -name = "cron" -version = "0.12.1" +name = "croner" +version = "2.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f8c3e73077b4b4a6ab1ea5047c37c57aee77657bc8ecd6f29b0af082d0b0c07" +checksum = "09b42c74d1c9fc4680c245ca7287bd631fe73eb364657268b0e65bafdec83d47" dependencies = [ "chrono", - "nom", - "once_cell", ] [[package]] @@ -514,7 +512,7 @@ dependencies = [ [[package]] name = "ghstats" -version = "0.4.0" +version = "0.5.0" dependencies = [ "anyhow", "axum", @@ -1901,12 +1899,12 @@ dependencies = [ [[package]] name = "tokio-cron-scheduler" -version = "0.11.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2594dd7c2abbbafbb1c78d167fd10860dc7bd75f814cb051a1e0d3e796b9702" +checksum = "6a5597b569b4712cf78aa0c9ae29742461b7bda1e49c2a5fdad1d79bf022f8f0" dependencies = [ "chrono", - "cron", + "croner", "num-derive", "num-traits", "tokio", @@ -1965,15 +1963,14 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.5.2" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5" +checksum = "8437150ab6bbc8c5f0f519e3d5ed4aa883a83dd4cdd3d1b21f9482936046cb97" dependencies = [ "bitflags", "bytes", "http", "http-body", - "http-body-util", "pin-project-lite", "tower-layer", "tower-service", diff --git a/Cargo.toml b/Cargo.toml index fded0c6..7a537bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,23 +1,23 @@ [package] name = "ghstats" -version = "0.4.0" +version = "0.5.0" edition = "2021" [dependencies] -anyhow = "1.0.86" -axum = "0.7.5" +anyhow = "1.0.89" +axum = "0.7.7" chrono = { version = "0.4.38", features = ["serde"] } dotenvy = "0.15.7" maud = { version = "0.26.0", features = ["axum"] } -reqwest = { version = "0.12.5", features = ["json", "rustls-tls"], default-features = false } -serde = { version = "1.0.204", features = ["serde_derive"] } -serde_json = "1.0.120" +reqwest = { version = "0.12.8", features = ["json", "rustls-tls"], default-features = false } +serde = { version = "1.0.210", features = ["serde_derive"] } +serde_json = "1.0.128" serde_variant = "0.1.3" -sqlx = { version = "0.8.0", features = ["runtime-tokio", "sqlite"] } +sqlx = { version = "0.8.2", features = ["runtime-tokio", "sqlite"] } thousands = "0.2.0" -tokio = { version = "1.38.1", features = ["full"] } -tokio-cron-scheduler = "0.11.0" -tower-http = { version = "0.5.2", features = ["trace", "cors"] } +tokio = { version = "1.40.0", features = ["full"] } +tokio-cron-scheduler = "0.13.0" +tower-http = { version = "0.6.1", features = ["trace", "cors"] } tracing = "0.1.40" tracing-subscriber = "0.3.18" diff --git a/Makefile b/Makefile index 3e79503..a416e73 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,14 @@ dev: cargo watch -q -x 'run' +lint: + cargo fmt --check + cargo check --release --locked + +update: + @# cargo install cargo-edit + cargo upgrade -i + docker-build: docker build -t ghstats . docker images -q ghstats | xargs docker inspect -f '{{.Size}}' | xargs numfmt --to=iec