From c7c63f98b47b412b77d7d2594d12b86087eec773 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 11:17:36 -0400 Subject: [PATCH 1/5] Updating name --- Cargo.lock | 30 +++++++++++++++--------------- Cargo.toml | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index db9ad1f..a10d76c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1067,6 +1067,21 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "schedtxt_models" +version = "0.5.2" +dependencies = [ + "const_format", + "dotenvy", + "josekit", + "serde", + "serde_json", + "sqlx", + "time", + "utoipa", + "uuid", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -1451,21 +1466,6 @@ dependencies = [ "windows-sys", ] -[[package]] -name = "textsender_models" -version = "0.5.2" -dependencies = [ - "const_format", - "dotenvy", - "josekit", - "serde", - "serde_json", - "sqlx", - "time", - "utoipa", - "uuid", -] - [[package]] name = "thiserror" version = "2.0.18" diff --git a/Cargo.toml b/Cargo.toml index 2996275..8850a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "textsender_models" +name = "schedtxt_models" version = "0.5.2" edition = "2024" rust-version = "1.97" -description = "Models used for the textsender project" +description = "Models used for the schedtxt project" [dependencies] serde = { version = "1.0.228", features = ["derive"] } -- 2.47.3 From 1820a39fef0bcec3d5f57356ab82a967cc2869b3 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 11:17:55 -0400 Subject: [PATCH 2/5] Updating name references --- .gitea/workflows/pr.yml | 2 +- src/envy/environment.rs | 4 ++-- src/envy/keys.rs | 16 ++++++++-------- src/token/mod.rs | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index f3ec6e4..3ae894c 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -1,4 +1,4 @@ -name: textsender_models PR +name: schedtxt_models PR on: pull_request: diff --git a/src/envy/environment.rs b/src/envy/environment.rs index bd673c9..d10bfd7 100644 --- a/src/envy/environment.rs +++ b/src/envy/environment.rs @@ -40,7 +40,7 @@ pub fn get_root_directory() -> crate::envy::EnvVar { pub fn get_app_base_api_url() -> crate::envy::EnvVar { dotenvy::dotenv().ok(); - let key = crate::envy::keys::TEXTSENDER_BASE_API_URL; + let key = crate::envy::keys::SCHEDTXT_BASE_API_URL; let value = std::env::var(key).expect(key); crate::envy::init_envvar(key, &value) @@ -48,7 +48,7 @@ pub fn get_app_base_api_url() -> crate::envy::EnvVar { pub fn get_app_auth_base_api_url() -> crate::envy::EnvVar { dotenvy::dotenv().ok(); - let key = crate::envy::keys::TEXTSENDER_AUTH_BASE_API_URL; + let key = crate::envy::keys::SCHEDTXT_AUTH_BASE_API_URL; let value = std::env::var(key).expect(key); crate::envy::init_envvar(key, &value) diff --git a/src/envy/keys.rs b/src/envy/keys.rs index 24e84a9..4e355a6 100644 --- a/src/envy/keys.rs +++ b/src/envy/keys.rs @@ -2,7 +2,7 @@ pub const DB_URL: &str = "DATABASE_URL"; /// Environment key for secret main key -/// Used for the textsender app +/// Used for the schedtxt app pub const SECRET_MAIN_KEY: &str = "SECRET_MAIN_KEY"; /// Environment key for service logins @@ -15,11 +15,11 @@ pub const SECRET_KEY: &str = "SECRET_KEY"; /// Environment key for root directory for the textsender app pub const ROOT_DIRECTORY: &str = "ROOT_DIRECTORY"; -/// Environment key for textsender api url -pub const TEXTSENDER_BASE_API_URL: &str = "TEXTSENDER_BASE_API_URL"; +/// Environment key for schedtxt api url +pub const SCHEDTXT_BASE_API_URL: &str = "SCHEDTXT_BASE_API_URL"; /// Environment key for textsender auth api url -pub const TEXTSENDER_AUTH_BASE_API_URL: &str = "TEXTSENDER_AUTH_BASE_API_URL"; +pub const SCHEDTXT_AUTH_BASE_API_URL: &str = "SCHEDTXT_AUTH_BASE_API_URL"; /// Environment key for App status pub const APP_ENV: &str = "APP_ENV"; @@ -41,10 +41,10 @@ pub mod error { pub const SERVICE_LOGIN: &str = concatcp!(super::SERVICE_PASSPHRASE, " ", GENERAL_ERROR); pub const SECRET_KEY: &str = concatcp!(super::SECRET_KEY, " ", GENERAL_ERROR); pub const ROOT_DIRECTORY: &str = concatcp!(super::ROOT_DIRECTORY, " ", GENERAL_ERROR); - pub const TEXTSENDER_BASE_API_URL: &str = - concatcp!(super::TEXTSENDER_BASE_API_URL, " ", GENERAL_ERROR); - pub const TEXTSENDER_AUTH_BASE_API_URL: &str = - concatcp!(super::TEXTSENDER_AUTH_BASE_API_URL, " ", GENERAL_ERROR); + pub const SCHEDTXT_BASE_API_URL: &str = + concatcp!(super::SCHEDTXT_BASE_API_URL, " ", GENERAL_ERROR); + pub const SCHEDTXT_AUTH_BASE_API_URL: &str = + concatcp!(super::SCHEDTXT_AUTH_BASE_API_URL, " ", GENERAL_ERROR); pub const APP_ENV: &str = concatcp!(super::APP_ENV, " ", GENERAL_ERROR); pub const BACKEND_PORT: &str = concatcp!(super::BACKEND_PORT, " ", GENERAL_ERROR); pub const FRONTEND_URL: &str = concatcp!(super::FRONTEND_URL, " ", GENERAL_ERROR); diff --git a/src/token/mod.rs b/src/token/mod.rs index e801ac5..6c714d2 100644 --- a/src/token/mod.rs +++ b/src/token/mod.rs @@ -174,8 +174,8 @@ fn init_payload_issued( #[cfg(test)] mod tests { - const TEST_MESSAGE: &str = "Testing for textsender"; - const TEST_ISSUER: &str = "textsender-test"; + const TEST_MESSAGE: &str = "Testing for schedtxt"; + const TEST_ISSUER: &str = "schedtxt-test"; const TEST_AUDIENCE: &str = "area-test"; const TEST_USER_ID: uuid::Uuid = uuid::uuid!("9ab1c75f-d184-4913-ae99-544b4dcfcb41"); const TEST_KEY: &str = "8342nhf7ycrt4983q7ryfc93w478ryfc3w9487ryfc342w98i7cy"; -- 2.47.3 From cba17c71bfc031f039ee7fcb7bec83f88527b358 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 11:18:32 -0400 Subject: [PATCH 3/5] bump: uuid --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a10d76c..2f93c26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,9 +97,9 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] name = "cc" -version = "1.2.66" +version = "1.2.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5d6cac793997bd970000024b2934968efe83b382de4fdcf4fcb46b6ee4ad996" +checksum = "e17dd265a7d0f31ef544e1b20e03add05d3b45b491b633b10d67145d2acc1a38" dependencies = [ "find-msvc-tools", "shlex", @@ -1528,9 +1528,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" dependencies = [ "tinyvec_macros", ] @@ -1681,9 +1681,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.23.4" +version = "1.23.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf80a72845275afea99e7f2b434723d3bc7e38470fcd1c7ed39a599c73319a53" +checksum = "ea5fab0d6c3c01ae70085a09cb03d4c7a1d6314e2b3e075392783396d724ca0a" dependencies = [ "getrandom", "js-sys", @@ -1860,6 +1860,6 @@ dependencies = [ [[package]] name = "zmij" -version = "1.0.21" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml index 8850a46..9dd333e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ serde = { version = "1.0.228", features = ["derive"] } serde_json = { version = "1.0.150" } time = { version = "0.3.53", features = ["formatting", "macros", "parsing", "serde"] } sqlx = { version = "0.9.0", features = ["runtime-tokio", "tls-native-tls", "postgres", "time", "uuid"] } -uuid = { version = "1.23.4", features = ["v4", "serde"] } +uuid = { version = "1.23.5", features = ["v4", "serde"] } dotenvy = { version = "0.15.7" } const_format = { version = "0.2.36" } josekit = { version = "0.10.3" } -- 2.47.3 From 65cb79efa270ba53659305bf14637a72b1142898 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 11:19:26 -0400 Subject: [PATCH 4/5] bump: schedtxt_models --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2f93c26..9577d41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1069,7 +1069,7 @@ dependencies = [ [[package]] name = "schedtxt_models" -version = "0.5.2" +version = "0.5.3" dependencies = [ "const_format", "dotenvy", diff --git a/Cargo.toml b/Cargo.toml index 9dd333e..f6c964d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schedtxt_models" -version = "0.5.2" +version = "0.5.3" edition = "2024" rust-version = "1.97" description = "Models used for the schedtxt project" -- 2.47.3 From 32a42943c5c841561a896677f005dc114ab15072 Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 13 Jul 2026 11:24:58 -0400 Subject: [PATCH 5/5] Adding readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a11368 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# schedtxt_models +Models library for the `schedtxt` project. -- 2.47.3