You've already forked AstralRinth
forked from didirus/AstralRinth
Switch to Postgres (#39)
* WIP Switch to Postgres * feat(postgres): more work on porting to postgres, now compiles * feat(docker-compose): Changed the docker-compose.yml file to use postgres. * Update docker, documentation, gh actions... * Remove bson dependency * Remove bson import * feat: move mock filehost to trait rather than cargo feature * feat(postgres): transactions for mod creation, multipart refactor * fix: Add Cargo.lock so that sqlx functions * Update sqlx offline build data * fix: Use SQLX_OFFLINE to force sqlx into offline mode for CI * Default release channels * feat(postgres): refactor database models to fit postgres models * fix: Fix sqlx prepare, fix double allocation in indexing * Add dockerfile (#40) Co-authored-by: Charalampos Fanoulis <charalampos.fanoulis@gmail.com> Co-authored-by: Aeledfyr <aeledfyr@gmail.com> Co-authored-by: redblueflame <contact@redblueflame.com> Co-authored-by: Jai A <jai.a@tuta.io> Co-authored-by: Valentin Ricard <redblueflame1@gmail.Com> Co-authored-by: Charalampos Fanoulis <charalampos.fanoulis@gmail.com>
This commit is contained in:
27
Cargo.toml
27
Cargo.toml
@@ -1,10 +1,14 @@
|
||||
[package]
|
||||
name = "modrinth"
|
||||
name = "labrinth"
|
||||
version = "0.1.0"
|
||||
#Team members, please add your emails and usernames
|
||||
authors = ["geometrically <jai.a@tuta.io>", "Redblueflame <contact@redblueflame.com>", "Aeledfyr <aeledfyr@gmail.com>", "cfanoulis"]
|
||||
authors = ["geometrically <jai.a@tuta.io>", "Redblueflame <contact@redblueflame.com>", "Aeledfyr <aeledfyr@gmail.com>", "Charalampos Fanoulis <yo@fanoulis.dev>"]
|
||||
edition = "2018"
|
||||
|
||||
[[bin]]
|
||||
name = "labrinth"
|
||||
path = "src/main.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@@ -18,7 +22,7 @@ reqwest = {version="0.10.6", features=["json"]}
|
||||
meilisearch-sdk = "0.1.4"
|
||||
|
||||
serde_json = "1.0"
|
||||
serde = {version="1.0", features=["derive"]}
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
rand = "0.7"
|
||||
|
||||
@@ -26,9 +30,6 @@ dotenv = "0.15"
|
||||
log = "0.4.8"
|
||||
env_logger = "0.7.1"
|
||||
|
||||
mongodb = "1.0.0"
|
||||
bson = "1.0.0"
|
||||
|
||||
thiserror = "1.0.20"
|
||||
async-trait = "0.1.36"
|
||||
|
||||
@@ -38,6 +39,14 @@ futures-timer = "3.0.2"
|
||||
base64 = "0.12.3"
|
||||
sha1 = {version="0.6.0", features=["std"]}
|
||||
|
||||
[features]
|
||||
default = []
|
||||
backblaze = []
|
||||
[dependencies.sqlx]
|
||||
git = "https://github.com/launchbadge/sqlx/"
|
||||
branch = "master"
|
||||
default-features = false
|
||||
features = ["runtime-actix", "postgres", "chrono", "offline", "macros"]
|
||||
|
||||
[dependencies.sqlx-macros]
|
||||
git = "https://github.com/launchbadge/sqlx/"
|
||||
branch = "master"
|
||||
default-features = false
|
||||
features = ["runtime-actix", "postgres", "chrono", "offline"]
|
||||
|
||||
Reference in New Issue
Block a user