mirror of
https://github.com/GothenburgBitFactory/taskchampion-sync-server.git
synced 2026-04-06 09:40:43 +00:00
Add a binary that uses a Postgres backend
Building of this binary is controlled with features, allowing downstream users to build just the SQLite version and not be concerned with the tokio-postgres dependency tree (which includes links to OpenSSL and other details). The Postgres version is disabled by default. This does not change the binary name for the SQLite build, just to avoid confusion for people upgrading to the new version.
This commit is contained in:
@ -49,8 +49,10 @@ pub(crate) async fn service(
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::WebServer;
|
||||
use crate::{api::CLIENT_ID_HEADER, WebConfig};
|
||||
use crate::{
|
||||
api::CLIENT_ID_HEADER,
|
||||
web::{WebConfig, WebServer},
|
||||
};
|
||||
use actix_web::{http::StatusCode, test, App};
|
||||
use pretty_assertions::assert_eq;
|
||||
use taskchampion_sync_server_core::{InMemoryStorage, ServerConfig, Storage, NIL_VERSION_ID};
|
||||
|
||||
Reference in New Issue
Block a user