From ad2383c56b23e56fc4bfc4ff303c96a6a8454e8f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Nov 2024 01:48:01 +0100 Subject: [PATCH] `core`: Add `postgres` feature to `diesel` --- .idea/sqldialects.xml | 2 +- acrate-core/Cargo.toml | 2 +- acrate-core/src/lib.rs | 2 ++ acrate-core/src/meta.rs | 0 4 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 acrate-core/src/meta.rs diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml index 610ed0f..4495f93 100644 --- a/.idea/sqldialects.xml +++ b/.idea/sqldialects.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/acrate-core/Cargo.toml b/acrate-core/Cargo.toml index 6823787..2b8a3ed 100644 --- a/acrate-core/Cargo.toml +++ b/acrate-core/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -diesel = "2.2.4" +diesel = { version = "2.2.4", features = ["postgres"] } diesel_migrations = "2.2.0" acrate-hostmeta = { path = "../acrate-hostmeta" } acrate-nodeinfo = { path = "../acrate-nodeinfo" } diff --git a/acrate-core/src/lib.rs b/acrate-core/src/lib.rs index dae5ee7..bca0f47 100644 --- a/acrate-core/src/lib.rs +++ b/acrate-core/src/lib.rs @@ -1,4 +1,6 @@ //! Core crate of the `acrate` project. +mod meta; + pub use acrate_nodeinfo as nodeinfo; pub use acrate_hostmeta as hostmeta; diff --git a/acrate-core/src/meta.rs b/acrate-core/src/meta.rs new file mode 100644 index 0000000..e69de29