From 46461c691080df5aefcc8a01e12e08be8b6d0c83 Mon Sep 17 00:00:00 2001 From: "detail-app[bot]" <180357370+detail-app[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:22:49 +0000 Subject: [PATCH] chore: remove unused ServerConfig and DatabaseConfig structs --- crates/devbox-common/README.md | 1 - crates/devbox-common/src/lib.rs | 34 --------------------------------- 2 files changed, 35 deletions(-) diff --git a/crates/devbox-common/README.md b/crates/devbox-common/README.md index f1fb194..9bd9ea4 100644 --- a/crates/devbox-common/README.md +++ b/crates/devbox-common/README.md @@ -14,7 +14,6 @@ library — no I/O. `DevboxListResponse`, `HealthResponse`, `PoolMetricsResponse`, `ProtectedResourceMetadata`. Release takes no body — the owner is the authenticated principal, so there is no `ReleaseRequest`. -- **Config structs** — `ServerConfig`, `DatabaseConfig`. All types derive `serde::{Serialize, Deserialize}`; the AWS-id newtypes are `#[serde(transparent)]`, so they serialize as plain strings. Dependencies are diff --git a/crates/devbox-common/src/lib.rs b/crates/devbox-common/src/lib.rs index b3e431c..59e2e81 100644 --- a/crates/devbox-common/src/lib.rs +++ b/crates/devbox-common/src/lib.rs @@ -625,40 +625,6 @@ pub struct PoolMetricsResponse { pub warm: u32, } -// ============================================================================ -// Config Structs -// ============================================================================ - -/// Server configuration. -#[derive(Debug, Clone)] -pub struct ServerConfig { - /// Port to listen on. - pub port: u16, - /// Database URL. - pub database_url: String, -} - -/// Database configuration. -#[derive(Debug, Clone)] -pub struct DatabaseConfig { - /// Database URL (sqlite: or postgres:). - pub url: String, - /// Maximum pool connections. - pub max_connections: u32, - /// Minimum idle connections. - pub min_connections: u32, -} - -impl Default for DatabaseConfig { - fn default() -> Self { - Self { - url: "sqlite::memory:".to_string(), - max_connections: 25, - min_connections: 2, - } - } -} - // ============================================================================ // Tests // ============================================================================