2022-05-06 11:47:18 +02:00
|
|
|
[package]
|
|
|
|
name = "model"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
db = ["sqlx", "sqlx-core"]
|
2022-05-06 16:02:38 +02:00
|
|
|
dummy = ["fake", "rand"]
|
2022-05-06 11:47:18 +02:00
|
|
|
|
2022-12-01 17:39:06 +01:00
|
|
|
accounts = []
|
|
|
|
carts = []
|
|
|
|
emails = []
|
|
|
|
search = []
|
|
|
|
stocks = []
|
|
|
|
orders = []
|
|
|
|
payments = []
|
|
|
|
default = ['accounts', 'carts', 'emails', 'search', 'stocks', 'orders', 'payments']
|
|
|
|
|
2022-05-06 11:47:18 +02:00
|
|
|
[dependencies]
|
2022-12-20 15:34:20 +01:00
|
|
|
argon2 = { version = "0", features = ["parallel", "password-hash"] }
|
|
|
|
chrono = { version = "0", features = ["serde"] }
|
|
|
|
derive_more = { version = "0" }
|
2022-10-31 09:28:49 +01:00
|
|
|
fake = { version = "2", features = ["derive", "chrono", "http", "uuid", "dummy"], optional = true }
|
2022-12-20 15:34:20 +01:00
|
|
|
password-hash = { version = "0", features = ["alloc"] }
|
|
|
|
rand = { version = "0", optional = true }
|
|
|
|
rand_core = { version = "0", features = ["std"] }
|
|
|
|
serde = { version = "1" }
|
|
|
|
sqlx = { version = "0", features = ["migrate", "runtime-actix-rustls", "all-types", "postgres"], optional = true }
|
|
|
|
sqlx-core = { version = "0", features = [], optional = true }
|
|
|
|
thiserror = { version = "1" }
|
|
|
|
uuid = { version = "1", features = ["serde"] }
|
|
|
|
validator = { version = "0" }
|