From e389c16a0d5721cfa2afcab96f8441536431ad32 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:34:21 -0400 Subject: [PATCH 01/12] Workflow update --- .gitea/workflows/pr.yml | 68 +++++++++++++++++++++++++++++++++++ .gitea/workflows/workflow.yml | 3 -- 2 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/pr.yml diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml new file mode 100644 index 0000000..b6bd40f --- /dev/null +++ b/.gitea/workflows/pr.yml @@ -0,0 +1,68 @@ +name: Rust Build + +on: + pull_request: + branches: + - main + +jobs: + check: + name: Check + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.95 + - uses: Swatinem/rust-cache@v2 + - run: | + mkdir -p ~/.ssh + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key + chmod 600 ~/.ssh/textsender-models_deploy_key + ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts + + eval $(ssh-agent -s) + ssh-add -v ~/.ssh/textsender-models_deploy_key + + cargo check + + + fmt: + name: Rustfmt + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.95 + - uses: Swatinem/rust-cache@v2 + - run: rustup component add rustfmt + - run: | + mkdir -p ~/.ssh + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key + chmod 600 ~/.ssh/textsender-models_deploy_key + ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts + + eval $(ssh-agent -s) + ssh-add -v ~/.ssh/textsender-models_deploy_key + cargo fmt --all -- --check + + clippy: + name: Clippy + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v5 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: 1.95 + - uses: Swatinem/rust-cache@v2 + - run: rustup component add clippy + - run: | + mkdir -p ~/.ssh + echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/textsender-models_deploy_key + chmod 600 ~/.ssh/textsender-models_deploy_key + ssh-keyscan ${{ secrets.MY_HOST }} >> ~/.ssh/known_hosts + + eval $(ssh-agent -s) + ssh-add -v ~/.ssh/textsender-models_deploy_key + cargo clippy -- -D warnings diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index cdaa66d..c70a41c 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - main jobs: check: -- 2.47.3 From 43c547a821b1a642be9aa71c41d3a3cd03484875 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:35:22 -0400 Subject: [PATCH 02/12] bump: rust ci --- .gitea/workflows/pr.yml | 6 +++--- .gitea/workflows/workflow.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index b6bd40f..f6e6664 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: rustup component add rustfmt - run: | @@ -54,7 +54,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: rustup component add clippy - run: | diff --git a/.gitea/workflows/workflow.yml b/.gitea/workflows/workflow.yml index c70a41c..0e27b5f 100644 --- a/.gitea/workflows/workflow.yml +++ b/.gitea/workflows/workflow.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh @@ -50,7 +50,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 # --- Add this step for explicit verification --- - name: Verify Docker Environment @@ -93,7 +93,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: rustup component add rustfmt - run: | @@ -113,7 +113,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: rustup component add clippy - run: | @@ -133,7 +133,7 @@ jobs: - uses: actions/checkout@v5 - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 - uses: Swatinem/rust-cache@v2 - run: | mkdir -p ~/.ssh -- 2.47.3 From de5154c88a87ecba05a427a11d656b40e52e8eac Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:35:31 -0400 Subject: [PATCH 03/12] bump: rust docker --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cd620e..5683cce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Stage 1: Build the application # Use a specific Rust version for reproducibility. Choose one that matches your development environment. # Using slim variant for smaller base image -FROM rust:1.95 as builder +FROM rust:1.96 as builder # Set the working directory inside the container WORKDIR /usr/src/app -- 2.47.3 From 2ab7fa9bf1d48ce3130200775a2dd2ea465f6516 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:35:39 -0400 Subject: [PATCH 04/12] bump: rust --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index bf98d97..d3d5cc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "textsender_auth" version = "0.1.23" edition = "2024" -rust-version = "1.95" +rust-version = "1.96" [dependencies] axum = { version = "0.8.9" } -- 2.47.3 From 0f3bfff7ac3798b11596c8ec031ea1a66eb6687b Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:36:13 -0400 Subject: [PATCH 05/12] cargo update --- Cargo.lock | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8b0b146..0a7dfe4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -469,7 +469,6 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" dependencies = [ - "powerfmt", "serde_core", ] @@ -2283,12 +2282,11 @@ dependencies = [ [[package]] name = "time" -version = "0.3.47" +version = "0.3.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +checksum = "711a53c2d47bbd818258c498c8dbfe186a2526c631495cfe7e078567f86b8469" dependencies = [ "deranged", - "itoa", "num-conv", "powerfmt", "serde_core", @@ -2298,15 +2296,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" [[package]] name = "time-macros" -version = "0.2.27" +version = "0.2.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +checksum = "71c652a3727a9cbb9a02f707f530b618ce00d0ccd762009c8c23bd191df3c17d" dependencies = [ "num-conv", "time-core", -- 2.47.3 From 4965740ca0932be5d7756cfe69f2557952f1e054 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:37:17 -0400 Subject: [PATCH 06/12] bump: serde_json --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d3d5cc0..2fe7812 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ rust-version = "1.96" [dependencies] axum = { version = "0.8.9" } serde = { version = "1.0.228", features = ["derive"] } -serde_json = { version = "1.0.149" } +serde_json = { version = "1.0.150" } tokio = { version = "1.52.2", features = ["rt-multi-thread"] } tracing-subscriber = { version = "0.3.23" } tower = { version = "0.5.3", features = ["full"] } -- 2.47.3 From 9f0d4ea4e016cb4437df77ed8b04620063232b43 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:37:33 -0400 Subject: [PATCH 07/12] bump : tokio --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2fe7812..6e71eb3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ rust-version = "1.96" axum = { version = "0.8.9" } serde = { version = "1.0.228", features = ["derive"] } serde_json = { version = "1.0.150" } -tokio = { version = "1.52.2", features = ["rt-multi-thread"] } +tokio = { version = "1.52.3", features = ["rt-multi-thread"] } tracing-subscriber = { version = "0.3.23" } tower = { version = "0.5.3", features = ["full"] } tower-http = { version = "0.6.10", features = ["cors"] } -- 2.47.3 From b973a2bb7c8385112b2c7b25a0b1a37ec7bc12a3 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:38:16 -0400 Subject: [PATCH 08/12] bump: tower-http --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6e71eb3..6dafbd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ serde_json = { version = "1.0.150" } tokio = { version = "1.52.3", features = ["rt-multi-thread"] } tracing-subscriber = { version = "0.3.23" } tower = { version = "0.5.3", features = ["full"] } -tower-http = { version = "0.6.10", features = ["cors"] } +tower-http = { version = "0.6.11", features = ["cors"] } hyper = { version = "1.9.0" } sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", "time", "uuid"] } uuid = { version = "1.23.1", features = ["v4", "serde"] } -- 2.47.3 From e7c45244e01688212febc3f354f951bd33dd277b Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:38:50 -0400 Subject: [PATCH 09/12] bump: hyper --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6dafbd9..ceae17a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ tokio = { version = "1.52.3", features = ["rt-multi-thread"] } tracing-subscriber = { version = "0.3.23" } tower = { version = "0.5.3", features = ["full"] } tower-http = { version = "0.6.11", features = ["cors"] } -hyper = { version = "1.9.0" } +hyper = { version = "1.10.1" } sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", "time", "uuid"] } uuid = { version = "1.23.1", features = ["v4", "serde"] } argon2 = { version = "0.5.3", features = ["std"] } # Use the latest 0.5.x version -- 2.47.3 From 8e5721d7f9e8adc253f895249471d3b1a0ce8f83 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:40:37 -0400 Subject: [PATCH 10/12] bump: uuid --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ceae17a..1f78c70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ tower = { version = "0.5.3", features = ["full"] } tower-http = { version = "0.6.11", features = ["cors"] } hyper = { version = "1.10.1" } sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", "time", "uuid"] } -uuid = { version = "1.23.1", features = ["v4", "serde"] } +uuid = { version = "1.23.3", features = ["v4", "serde"] } argon2 = { version = "0.5.3", features = ["std"] } # Use the latest 0.5.x version rand = { version = "0.10.1" } time = { version = "0.3.47", features = ["macros", "serde"] } -- 2.47.3 From 23876c975d9c90a10b981296380798c4e2c63ea8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:41:06 -0400 Subject: [PATCH 11/12] bump: time --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1f78c70..36ab073 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio-native-tls", uuid = { version = "1.23.3", features = ["v4", "serde"] } argon2 = { version = "0.5.3", features = ["std"] } # Use the latest 0.5.x version rand = { version = "0.10.1" } -time = { version = "0.3.47", features = ["macros", "serde"] } +time = { version = "0.3.49", features = ["macros", "serde"] } josekit = { version = "0.10.3" } utoipa = { version = "5.5.0", features = ["axum_extras"] } utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] } -- 2.47.3 From 83b2e42f0c00a481c07c002467572549fd7665c1 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 18:45:13 -0400 Subject: [PATCH 12/12] bump: textsender_models --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0a7dfe4..1e52b61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2238,8 +2238,8 @@ dependencies = [ [[package]] name = "textsender_models" -version = "0.3.3" -source = "git+ssh://git@git.kundeng.us/phoenix/textsender_models.git?tag=v0.3.3#c09fa36b15601b37f65b8baac0d479c30d2c1e44" +version = "0.4.0" +source = "git+ssh://git@git.kundeng.us/phoenix/textsender_models.git?tag=v0.4.0#2722af5589023db819554a97c1f596d9e735fe96" dependencies = [ "const_format", "dotenvy", diff --git a/Cargo.toml b/Cargo.toml index 36ab073..d45a600 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ time = { version = "0.3.49", features = ["macros", "serde"] } josekit = { version = "0.10.3" } utoipa = { version = "5.5.0", features = ["axum_extras"] } utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] } -textsender_models = { git = "ssh://git@git.kundeng.us/phoenix/textsender_models.git", tag = "v0.3.3" } +textsender_models = { git = "ssh://git@git.kundeng.us/phoenix/textsender_models.git", tag = "v0.4.0", features = ["config", "user"] } [dev-dependencies] http-body-util = { version = "0.1.3" } -- 2.47.3