Made cryptography and entity modules

Coupling was rising so it just makes sense
This commit is contained in:
2024-05-05 18:38:21 +03:00
parent 9af37f78b2
commit 5871943c01
23 changed files with 151 additions and 175 deletions

View File

@@ -10,36 +10,44 @@ debug = 1
lto = true
codegen-units = 1
[workspace]
members = [".", "entity", "cryptography"]
[workspace.lints.clippy]
[lints.clippy]
pedantic = "warn"
all = "warn"
nursery = "warn"
[lints]
workspace = true
[dependencies]
ahash = "0.8"
anyhow = { version = "1", features = ["backtrace"] }
arrayvec = "0.7"
base64 = "0.22"
cryptography = { version = "0.1", path = "cryptography" }
bitflags = "2"
chacha20poly1305 = { version = "0.10", features = ["std"] }
derive_more = { version = "0.99", default-features = false, features = [
"deref",
"display",
] }
dotenvy = "0.15"
entity = { version = "0.1", path = "entity" }
futures = "0.3"
hex = "0.4"
itertools = "0.12"
once_cell = { version = "1", features = ["parking_lot"] }
parking_lot = "0.12"
pbkdf2 = { version = "0.12", features = ["parallel"] }
rand = { version = "0.8", default-features = false, features = [
"std_rng",
"std",
] }
scrypt = { version = "0.11", default-features = false, features = ["std"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
sha2 = "0.10"
sqlx = { version = "0.7", features = [
"mysql",
"runtime-tokio-rustls",
"macros",
"migrate",
] }
subtle = "2"
teloxide = { version = "0.12", features = [
"macros",
"ctrlc_handler",