From 8622b8c7204d1393f4e7f873d2080482ce9039e2 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:09:07 -0400 Subject: [PATCH 01/11] Limiting workflows ran in pr --- .gitea/workflows/rust.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.gitea/workflows/rust.yml b/.gitea/workflows/rust.yml index ddad6a8..c0c4045 100644 --- a/.gitea/workflows/rust.yml +++ b/.gitea/workflows/rust.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - main jobs: check: -- 2.47.3 From bb3f2f3af5b8e01cd8e2fa37e44b00e5150cec76 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:09:57 -0400 Subject: [PATCH 02/11] Adding pr workflow --- .gitea/workflows/pr.yml | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) 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..4dd18ea --- /dev/null +++ b/.gitea/workflows/pr.yml @@ -0,0 +1,42 @@ +name: textsender_models PR + +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: 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: 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: cargo clippy -- -D warnings -- 2.47.3 From bea9489c8eab02f3d8093bf2018989b31d4e47f4 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:19:39 -0400 Subject: [PATCH 03/11] Added features --- Cargo.lock | 2 +- Cargo.toml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f36b92a..e5e8940 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -522,7 +522,7 @@ dependencies = [ [[package]] name = "textsender_models" -version = "0.3.3" +version = "0.3.4" dependencies = [ "const_format", "dotenvy", diff --git a/Cargo.toml b/Cargo.toml index b25c08c..7b11464 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "textsender_models" -version = "0.3.3" +version = "0.3.4" edition = "2024" rust-version = "1.95" description = "Models used for the textsender project" @@ -15,4 +15,11 @@ const_format = { version = "0.2.36" } josekit = { version = "0.10.3" } utoipa = { version = "5.4.0", features = ["uuid", "time"] } +[features] +default = ["full"] +full = ["user", "message", "contact"] +user = [] +message = [] +contact = [] + [dev-dependencies] -- 2.47.3 From e7834093a6dc5e559d0ecb0c17907cb2d8d11d3a Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:25:59 -0400 Subject: [PATCH 04/11] Adding more features --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7b11464..b7841f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,9 +17,12 @@ utoipa = { version = "5.4.0", features = ["uuid", "time"] } [features] default = ["full"] -full = ["user", "message", "contact"] +full = ["user", "message", "contact", "config", "envy", "token"] user = [] message = [] contact = [] +config = [] +envy = [] +token = [] [dev-dependencies] -- 2.47.3 From 24ae7bf8d9c3a71d9335db6811ebc5a3f79c8219 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:34:33 -0400 Subject: [PATCH 05/11] bump: rust ci --- .gitea/workflows/pr.yml | 6 +++--- .gitea/workflows/release.yml | 2 +- .gitea/workflows/rust.yml | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 4dd18ea..f994815 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: cargo check @@ -24,7 +24,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: cargo fmt --all -- --check @@ -36,7 +36,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: cargo clippy -- -D warnings diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 220e516..b69247c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Install Rust uses: actions-rs/toolchain@v1 with: - toolchain: 1.95 + toolchain: 1.96 components: cargo - name: Extract Version from Cargo.toml diff --git a/.gitea/workflows/rust.yml b/.gitea/workflows/rust.yml index c0c4045..c8a0d72 100644 --- a/.gitea/workflows/rust.yml +++ b/.gitea/workflows/rust.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: cargo check @@ -24,7 +24,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: cargo test @@ -35,7 +35,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: cargo fmt --all -- --check @@ -47,7 +47,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: cargo clippy -- -D warnings @@ -59,6 +59,6 @@ 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: cargo build -- 2.47.3 From 6c2bb761fbc48e465c0dd55bd62ea7eda171ede6 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:34:40 -0400 Subject: [PATCH 06/11] bump: rust --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b7841f4..a5959df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "textsender_models" version = "0.3.4" edition = "2024" -rust-version = "1.95" +rust-version = "1.96" description = "Models used for the textsender project" [dependencies] -- 2.47.3 From 8964501ecaec69d7a82cd58f11328b37bb8ab8d9 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:35:24 -0400 Subject: [PATCH 07/11] bump: serde_json --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a5959df..e032aad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ description = "Models used for the textsender project" [dependencies] serde = { version = "1.0.228", features = ["derive"] } -serde_json = { version = "1.0.149" } +serde_json = { version = "1.0.150" } time = { version = "0.3.47", features = ["formatting", "macros", "parsing", "serde"] } uuid = { version = "1.23.1", features = ["v4", "serde"] } dotenvy = { version = "0.15.7" } -- 2.47.3 From 7a8790c896ffd86aa5e310299d16eeabd8df5daf Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:36:03 -0400 Subject: [PATCH 08/11] bump: time --- Cargo.lock | 14 ++++++-------- Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e5e8940..a6ac78b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,7 +93,6 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" dependencies = [ - "powerfmt", "serde_core", ] @@ -556,12 +555,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", @@ -571,15 +569,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", diff --git a/Cargo.toml b/Cargo.toml index e032aad..ad57fd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ description = "Models used for the textsender project" [dependencies] serde = { version = "1.0.228", features = ["derive"] } serde_json = { version = "1.0.150" } -time = { version = "0.3.47", features = ["formatting", "macros", "parsing", "serde"] } +time = { version = "0.3.49", features = ["formatting", "macros", "parsing", "serde"] } uuid = { version = "1.23.1", features = ["v4", "serde"] } dotenvy = { version = "0.15.7" } const_format = { version = "0.2.36" } -- 2.47.3 From 7f804438db4acf5325b2f5e74b63771a998d9ea5 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:36:34 -0400 Subject: [PATCH 09/11] bump: uuid --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index ad57fd1..32f2bff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ description = "Models used for the textsender project" serde = { version = "1.0.228", features = ["derive"] } serde_json = { version = "1.0.150" } time = { version = "0.3.49", features = ["formatting", "macros", "parsing", "serde"] } -uuid = { version = "1.23.1", features = ["v4", "serde"] } +uuid = { version = "1.23.3", features = ["v4", "serde"] } dotenvy = { version = "0.15.7" } const_format = { version = "0.2.36" } josekit = { version = "0.10.3" } -- 2.47.3 From c558916f9d01bfd8f9db2a88dc336c760c0f9157 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:38:13 -0400 Subject: [PATCH 10/11] bump: textsender_models --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a6ac78b..7ba6270 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -521,7 +521,7 @@ dependencies = [ [[package]] name = "textsender_models" -version = "0.3.4" +version = "0.4.0" dependencies = [ "const_format", "dotenvy", diff --git a/Cargo.toml b/Cargo.toml index 32f2bff..9ad397c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "textsender_models" -version = "0.3.4" +version = "0.4.0" edition = "2024" rust-version = "1.96" description = "Models used for the textsender project" -- 2.47.3 From 8f966c66e482a825c283ee8617019d3b7fc77fca Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 14 Jun 2026 17:40:42 -0400 Subject: [PATCH 11/11] bump: utoipa --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9ad397c..7dfc32b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ uuid = { version = "1.23.3", features = ["v4", "serde"] } dotenvy = { version = "0.15.7" } const_format = { version = "0.2.36" } josekit = { version = "0.10.3" } -utoipa = { version = "5.4.0", features = ["uuid", "time"] } +utoipa = { version = "5.5.0", features = ["uuid", "time"] } [features] default = ["full"] -- 2.47.3