aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: f80e8c9c797a46d8086001d9dc9fb5242d1d444b (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[workspace]
resolver = "3"
members = [ ".", "lib/*" ]

[workspace.package]
description = "A federated marketplace platform"
documentation = "https://books.kanjala.com/sellershut"
homepage = "https://git.kanjala.com/sellershut"
license = "AGPL-3.0-only"

[workspace.dependencies]
anyhow = "1.0.100"
bon = "3.8.2"
oauth2 = "5.0.0"
rand = "0.9.2"
secrecy = "0.10.3"
serde = "1.0.228"
thiserror = "2.0.18"
tracing = "0.1.44"
url = "2.5.8"

[package]
name = "sellershut"
version = "0.1.0"
edition = "2024"
description.workspace = true 
documentation.workspace = true
homepage.workspace = true
license.workspace = true

[dependencies]
anyhow.workspace = true
axum = "0.8.8"
clap = { version = "4.5.56", features = ["derive", "env"] }
oauth2.workspace = true
secrecy = { workspace = true, features = ["serde"] }
sellershut-auth = { path = "lib/auth" }
serde = { workspace = true, features = ["derive"] }
tokio = { version = "1.49.0", features = ["rt-multi-thread", "macros", "signal"] }
toml = "0.9.11"
tracing.workspace = true
tracing-subscriber = { version = "0.3.22", features = ["env-filter"] }
url = { workspace = true, features = ["serde"] }
utoipa = "5.4.0"
utoipa-rapidoc = { version = "6.0.0", optional = true }
utoipa-redoc = { version = "6.0.0", optional = true }
utoipa-scalar = { version = "0.3.0", optional = true }
utoipa-swagger-ui = { version = "9.0.2", optional = true }

[dependencies.sqlx]
version = "0.8.6"
default-features = false
features = ["postgres", "runtime-tokio-rustls"]

[features]
default = ["oauth-discord"]
oauth-discord = []
utoipa-rapidoc = ["dep:utoipa-rapidoc"]
utoipa-redoc = ["dep:utoipa-redoc"]
utoipa-scalar = ["dep:utoipa-scalar"]
utoipa-swagger-ui = ["dep:utoipa-swagger-ui"]

[profile.dev.package.sqlx-macros]
opt-level = 3

[dev-dependencies]
rand.workspace = true