Update rust (#263)
soaricarus_api CI / Check (push) Successful in 6m48s
soaricarus_api CI / Rustfmt (push) Successful in 3m46s
soaricarus_api CI / Clippy (push) Successful in 7m9s
soaricarus_api CI / build (push) Successful in 2m3s
soaricarus_api CI / Test Suite (push) Successful in 4m2s
soaricarus_api CI / Check (push) Successful in 6m48s
soaricarus_api CI / Rustfmt (push) Successful in 3m46s
soaricarus_api CI / Clippy (push) Successful in 7m9s
soaricarus_api CI / build (push) Successful in 2m3s
soaricarus_api CI / Test Suite (push) Successful in 4m2s
Reviewed-on: http://git.kundeng.us/phoenix/soaricarus_api/pulls/263
This commit was merged in pull request #263.
This commit is contained in:
1 parent
874ec9e914
commit
96af35e2dd
9 files changed
+294
-358
No files matched your search
@@ -16,7 +16,7 @@ jobs:
|
||||
timeout-minutes: 20
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18.4-alpine
|
||||
image: postgres:18.6-alpine
|
||||
env:
|
||||
POSTGRES_USER: ${{ secrets.DB_TEST_USER || 'testuser' }}
|
||||
POSTGRES_PASSWORD: ${{ secrets.DB_TEST_PASSWORD || 'testpassword' }}
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Verify Docker Environment
|
||||
run: |
|
||||
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
components: cargo
|
||||
|
||||
- name: Extract Version from Cargo.toml
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: |
|
||||
mkdir -p ~/.ssh
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
timeout-minutes: 20
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:18.4-alpine
|
||||
image: postgres:18.6-alpine
|
||||
env:
|
||||
POSTGRES_USER: ${{ secrets.DB_TEST_USER || 'testuser' }}
|
||||
POSTGRES_PASSWORD: ${{ secrets.DB_TEST_PASSWORD || 'testpassword' }}
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Verify Docker Environment
|
||||
run: |
|
||||
@@ -142,7 +142,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: rustup component add rustfmt
|
||||
- run: |
|
||||
@@ -162,7 +162,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: rustup component add clippy
|
||||
- run: |
|
||||
@@ -182,7 +182,7 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.97
|
||||
toolchain: 1.99
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- run: |
|
||||
mkdir -p ~/.ssh
|
||||
|
||||
Generated
+269
-332
File diff suppressed because it is too large.
Load diff
+9
-8
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "soaricarus_api"
|
||||
version = "0.5.8"
|
||||
version = "0.5.9"
|
||||
edition = "2024"
|
||||
rust-version = "1.95"
|
||||
license = "MIT"
|
||||
@@ -19,17 +19,18 @@ tower-http = { version = "0.7.0", features = ["cors", "timeout"] }
|
||||
tracing-subscriber = "0.3.23"
|
||||
futures = { version = "0.3.34" }
|
||||
mime_guess = { version = "2.0.5" }
|
||||
uuid = { version = "1.24.1", features = ["v4", "serde"] }
|
||||
uuid = { version = "1.27.0", features = ["v4", "serde"] }
|
||||
sqlx = { version = "0.9.0", features = ["postgres", "runtime-tokio", "tls-native-tls", "time", "uuid"] }
|
||||
time = { version = "0.3.55", features = ["formatting", "macros", "parsing", "serde"] }
|
||||
jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] }
|
||||
josekit = { version = "0.10.3" }
|
||||
utoipa = { version = "5.5.0", features = ["axum_extras"] }
|
||||
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
|
||||
simeta = { git = "ssh://git@git.kundeng.us/phoenix/simeta.git", tag = "v0.6.2" }
|
||||
simodels = { git = "ssh://git@git.kundeng.us/phoenix/simodels.git", tag = "v0.11.5-main-94d97cb81d-111" }
|
||||
sienvy = { git = "ssh://git@git.kundeng.us/phoenix/sienvy.git", tag = "v0.8.1" }
|
||||
labyrinth = { git = "ssh://git@git.kundeng.us/phoenix/labyrinth.git", tag = "v0.0.5" }
|
||||
utoipa = { version = "6.0.0", features = ["axum_extras"] }
|
||||
utoipa-swagger-ui = { version = "10.0.1", features = ["axum"] }
|
||||
simeta = { git = "ssh://git@git.kundeng.us/phoenix/simeta.git", tag = "v0.6.3" }
|
||||
simodels = { git = "ssh://git@git.kundeng.us/phoenix/simodels.git", tag = "v0.11.7" }
|
||||
sienvy = { git = "ssh://git@git.kundeng.us/phoenix/sienvy.git", tag = "v0.8.2" }
|
||||
labyrinth = { git = "ssh://git@git.kundeng.us/phoenix/labyrinth.git", tag = "v0.0.6" }
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
common-multipart-rfc7578 = { version = "0.7.0" }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM rust:1.97 as builder
|
||||
FROM rust:1.99 as builder
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
version: '3.8' # Use a recent version
|
||||
|
||||
services:
|
||||
# --- Web API ---
|
||||
api:
|
||||
@@ -27,9 +25,9 @@ services:
|
||||
# --- Web API auth ---
|
||||
auth_api:
|
||||
build:
|
||||
context: ../soaricarus_auth # IMPORTANT: Relative path to the local checkout of your web API repo (containing the Dockerfile)
|
||||
context: ../soaricarus_auth
|
||||
ssh: ["default"]
|
||||
dockerfile: Dockerfile # Optional: Specify if your Dockerfile has a non-standard name
|
||||
dockerfile: Dockerfile
|
||||
container_name: auth_api
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -132,7 +130,7 @@ services:
|
||||
|
||||
# PostgreSQL Database Service
|
||||
main_db:
|
||||
image: postgres:18.4-alpine
|
||||
image: postgres:18.6-alpine
|
||||
container_name: soaricarus_db
|
||||
environment:
|
||||
# These MUST match the user, password, and database name in the DATABASE_URL above
|
||||
@@ -157,7 +155,7 @@ services:
|
||||
|
||||
# --- soaricarus web auth api db ---
|
||||
auth_db:
|
||||
image: postgres:18.4-alpine
|
||||
image: postgres:18.6-alpine
|
||||
container_name: soaricarus_auth_db
|
||||
environment:
|
||||
# These MUST match the user, password, and database name in the DATABASE_URL above
|
||||
@@ -201,7 +201,7 @@ pub mod endpoint {
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(err) => match err {
|
||||
Err(err) => match *err {
|
||||
labyrinth::Error::Info(err_str) => {
|
||||
eprintln!("Error: {:?}", err_str);
|
||||
response.message = err_str.to_string();
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ mod tests {
|
||||
pub async fn resp_to_bytes(
|
||||
response: axum::response::Response,
|
||||
) -> Result<axum::body::Bytes, axum::Error> {
|
||||
axum::body::to_bytes(response.into_body(), std::usize::MAX).await
|
||||
axum::body::to_bytes(response.into_body(), usize::MAX).await
|
||||
}
|
||||
|
||||
pub async fn get_resp_data<Data>(response: axum::response::Response) -> Data
|
||||
|
||||
Reference in new issue
Block a user