-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
78 lines (67 loc) · 2.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[package]
name = "ruuth"
version = "0.2.1"
edition = "2021"
license = "GPL-3.0-or-later"
description = "Lightweight NGINX auth_request backend"
[dependencies]
# tracing/error handling
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-error = "0.2"
tracing-appender = "0.2"
tracing-log = "0.1"
color-eyre = { version = "0.6", features = ["tracing-error"] }
# askama/axum
axum = { version = "0.6", features = ["headers"] }
axum-sessions = "0.5"
async-redis-session = { git = "https://github.com/jbr/async-redis-session.git", rev = "1bf5106" }
async-sqlx-session = { git = "https://github.com/jbr/async-sqlx-session.git", rev = "06a3abb", default-features = false, features = ["mysql", "pg", "sqlite"] }
axum-server = { version = "0.5", features = ["tls-rustls"] }
askama = { version = "0.12", default-features = false, features = ["with-axum"] }
askama_derive = "0.12"
askama_axum = "0.3"
hyperlocal = "0.8"
hyper = "0.14"
# sea orm
sea-orm = { version = "0.11", default-features = false, features = ["runtime-tokio-rustls", "sqlx-sqlite", "sqlx-postgres", "sqlx-mysql"] }
sea-orm-migration = { version = "0.11", default-features = false, features = ["sqlx-sqlite", "sqlx-postgres", "sqlx-mysql"] }
sqlx = { version = "0.6", default-features = false, features = ["sqlite", "postgres", "mysql"] }
# config/cli
clap = { version = "4.0", features = ["derive"] }
clap-verbosity-flag = "2.0"
zxcvbn = "2.2"
config = { version = "0.13", default-features = false, features = ["toml"] }
rpassword = "7.0"
# crypto primitives
argon2 = { version = "0.5", features = ["std"] }
totp-lite = "2.0"
sha2 = "0.10"
# core lib type stuff
tokio = { version = "1.21", default-features = false }
serde = { version = "1.0", features = ["derive"] }
rand_core = { version = "0.6", features = ["std"] }
base64 = "0.21"
qrcode = { version = "0.12", default-features = false }
captcha = { version = "0.0", default-features = false }
rand = "0.8"
base32 = "0.4"
[build-dependencies]
minify-html = "0.11"
serde = { version = "1.0", features = ["derive"] }
toml = "0.7"
[profile.release]
strip = true
lto = true
codegen-units = 1
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/ruuth", dest = "/usr/bin/ruuth", mode = "755", config = false, doc = false },
{ source = "pkg/ruuth.toml", dest = "/etc/ruuth.toml", mode = "644", config = true, doc = false },
{ source = "pkg/ruuth.service", dest = "/usr/lib/systemd/system/ruuth.service", mode = "644", config = true, doc = false }
]
pre_install_script = "getent group ruuth >/dev/null 2>&1 || groupadd -r ruuth; getent passwd ruuth >/dev/null 2>&1 || useradd -g ruuth -r --no-create-home -s /sbin/nologin -c \"ruuth authentication daemon account\" ruuth"
post_install_script = "systemctl daemon-reload"
pre_uninstall_script = "systemctl disable --now ruuth"
[package.metadata.generate-rpm.requires]
shadow-utils = "*"