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 // ============================================================================