mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 21:02:14 +00:00
68 lines
1.9 KiB
TOML
68 lines
1.9 KiB
TOML
[package]
|
|
publish = false
|
|
name = "users_component"
|
|
edition = "2018"
|
|
version = "0.0.1"
|
|
authors = [
|
|
"Brandon Thomas <bt@brand.io>",
|
|
"Brandon Thomas <echelon@gmail.com>",
|
|
]
|
|
|
|
[lib]
|
|
name = "users_component"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
|
|
# Internal
|
|
container_common = { path = "../../../lib/deprecated/container_common" }
|
|
cookies = { path = "../../../lib/cookies" }
|
|
enums = { path = "../../../_types/enums" }
|
|
errors = { path = "../../../lib/errors" }
|
|
http_server_common = { path = "../../../lib/deprecated/http_server_common" }
|
|
mysql_queries = { path = "../../../lib/mysql_queries" }
|
|
redis_caching = { path = "../../../lib/caching/redis_caching" }
|
|
redis_common = { path = "../../../lib/redis_common" }
|
|
reusable_types = { path = "../../../_types/reusable_types" }
|
|
sqlx_mysql_helpers = { path = "../../../lib/sqlx_mysql_helpers" }
|
|
tokens = { path = "../../../_types/tokens" }
|
|
user_input_common = { path = "../../../lib/user_input_common" }
|
|
|
|
# External
|
|
anyhow = "1.0.75"
|
|
base64 = "0.21.0"
|
|
chrono = { version = "0.4.19", features = ["serde"] }
|
|
dotenv = "0.15.0"
|
|
lazy_static = "1.4.0" # Regex caching (TODO: Use OnceCell instead)
|
|
log = "0.4.14"
|
|
once_cell = "1.18.0"
|
|
rand = "0.8.3"
|
|
regex = "1.5.4"
|
|
time = "0.2.26"
|
|
|
|
# Web
|
|
actix-web = "4.0.0-beta.10"
|
|
jwt = "0.13.0"
|
|
|
|
# Crypto
|
|
bcrypt = "0.8" # password hashes
|
|
hmac = "0.10.0" # cookies
|
|
md-5 = "0.9.1" # gravatar
|
|
sha2 = "0.9.5" # file hashes, inference text hashes, etc.
|
|
|
|
# Serialization
|
|
serde = "1.0.125"
|
|
serde_derive = "1.0.125"
|
|
serde_json = "1.0.64"
|
|
toml = "0.5.8"
|
|
|
|
# MySql Database
|
|
# "offline" supports typesafe builds without a live database
|
|
# "rustls" doesn't appear to work with IP addresses, per:
|
|
# https://github.com/launchbadge/sqlx/issues/1095#issuecomment-798050828
|
|
sqlx = { version = "0.6.2", features = [ "mysql", "runtime-actix-native-tls", "offline", "chrono" ] }
|
|
|
|
# TODO: Shouldn't really be a dependency, but need to add caching for the DDoS attack.
|
|
# Redis Database
|
|
r2d2_redis = "0.14.0"
|