[package]
name = "salvo_test"
version = "0.15.0"
edition = "2021"

[[bin]]
name = "main"
path = "src/main.rs"

[[bin]]
name = "main-diesel"
path = "src/main_diesel.rs"

[[bin]]
name = "main-pg"
path = "src/main_pg.rs"

[[bin]]
name = "main-pg-pool"
path = "src/main_pg_pool.rs"

[[bin]]
name = "main-sqlx"
path = "src/main_sqlx.rs"

[[bin]]
name = "main-mongo"
path = "src/main_mongo.rs"

[[bin]]
name = "main-mongo-raw"
path = "src/main_mongo_raw.rs"

[[bin]]
name = "main-lru"
path = "src/main_lru.rs"

[dependencies]
anyhow = "1"
async-trait = "0.1"
bytes = "1"
diesel = { version = "2", features = ["postgres", "r2d2"] }
deadpool = { version = "0.12", features = ["rt_tokio_1", "serde", "managed"] }
deadpool-postgres = "0.14"
futures-util = "0.3"
lru = "0.12"
markup = "0.15"
# mimalloc = { version = "0.1", default-features = false }
mongodb = { version = "2", features = ["zstd-compression", "snappy-compression", "zlib-compression"] }
once_cell = "1"
rand = { version = "0.8", features = ["min_const_gen", "small_rng"] }
salvo = { version = "0.74", default-features = false, features = ["anyhow", "server", "http1", "affix-state"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# smallvec = "1"
# snmalloc-rs = { version = "0.3", features = ["native-cpu"] }
sqlx = { version = "0.7.1", features = ["postgres", "macros", "runtime-tokio-native-tls"] }
tokio = { version = "1", features = ["macros", "rt"] }
tokio-pg-mapper = "0.2.0"
tokio-pg-mapper-derive = "0.2.0"
tokio-postgres = "0.7"
v_htmlescape = "0.15"
dotenvy = "0.15"

[profile.release]
lto = true
codegen-units = 1
