-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
50 lines (46 loc) · 1.88 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
name = "essence"
authors = ["jay3332"]
version = "0.7.0"
edition = "2021"
description = "Essential models and database logic for the Adapt chat platform."
homepage = "https://adapt.chat"
license = "AGPL-3.0"
repository = "https://github.com/AdaptChat/essence"
readme = "README.md"
keywords = ["adapt", "adapt-chat"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = { version = "0.1", optional = true }
argon2-async = { version = "0.2", optional = true }
base64 = { version = "0.22", optional = true }
bincode = { version = "2.0.0-rc", features = ["serde"], optional = true }
bitflags = "1.3.2"
chrono = { version = "0.4.23", features = ["serde"] }
itertools = { version = "0.13", optional = true }
ring = { version = "0.17", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
tokio = { version = "1", features = ["sync"], default-features = false, optional = true }
deadpool-redis = { version = "0.15", optional = true }
uuid = { version = "1.3", default-features = false, features = ["serde", "std"] }
regex = { version = "1", optional = true }
futures-util = "0"
[dependencies.sqlx]
git = "https://github.com/benluelo/sqlx.git"
version = "0.8.0-alpha.0"
branch = "fix-encode-decode-derives"
features = ["postgres", "macros", "runtime-tokio-rustls", "chrono", "json", "uuid"]
optional = true
[dependencies.utoipa]
version = "4"
features = ["chrono"]
optional = true
[features]
default = ["snowflakes"]
auth = ["snowflakes", "dep:argon2-async", "dep:ring", "token-parsing"]
client = []
db = ["dep:async-trait", "dep:itertools", "dep:sqlx", "dep:tokio", "snowflakes", "serde_json", "dep:deadpool-redis", "bincode"]
snowflakes = ["regex"]
token-parsing = ["dep:base64", "snowflakes"]
webserver = ["auth", "bincode", "db", "utoipa", "utoipa/axum_extras", "utoipa/yaml"]