1
Fork 0

core: Add postgres feature to diesel

This commit is contained in:
Steffo 2024-11-15 01:48:01 +01:00
parent 03aab44ba4
commit ad2383c56b
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0
4 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="SqlDialectMappings"> <component name="SqlDialectMappings">
<file url="file://$PROJECT_DIR$/acrate-core/migrations/2024-11-14-031744_Add webfinger table/up.sql" dialect="GenericSQL" /> <file url="file://$PROJECT_DIR$/acrate-core/migrations/2024-11-14-031744_meta/up.sql" dialect="GenericSQL" />
</component> </component>
</project> </project>

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
diesel = "2.2.4" diesel = { version = "2.2.4", features = ["postgres"] }
diesel_migrations = "2.2.0" diesel_migrations = "2.2.0"
acrate-hostmeta = { path = "../acrate-hostmeta" } acrate-hostmeta = { path = "../acrate-hostmeta" }
acrate-nodeinfo = { path = "../acrate-nodeinfo" } acrate-nodeinfo = { path = "../acrate-nodeinfo" }

View file

@ -1,4 +1,6 @@
//! Core crate of the `acrate` project. //! Core crate of the `acrate` project.
mod meta;
pub use acrate_nodeinfo as nodeinfo; pub use acrate_nodeinfo as nodeinfo;
pub use acrate_hostmeta as hostmeta; pub use acrate_hostmeta as hostmeta;

0
acrate-core/src/meta.rs Normal file
View file