[package]
edition = "2021"
rust-version = "1.75"
name = "moniof"
version = "1.0.0"
authors = ["Snm Maurya <sxmmaurya@gmail.com>"]
build = false
exclude = [
"/examples/*",
"/target/*",
"*.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Actix middleware to monitor over-fetching and detect N+1 / overfetch database patterns (Mongo + SQL-agnostic)"
homepage = "https://github.com/srotas-space/moniof"
documentation = "https://docs.rs/moniof"
readme = "README.md"
keywords = [
"actix",
"n+1",
"observability",
"mongodb",
"sqlx",
]
categories = [
"database",
"web-programming",
"development-tools",
]
license = "MIT"
repository = "https://github.com/srotas-space/moniof"
[features]
default = ["mongodb"]
mongodb = ["dep:mongodb"]
sqlx = ["dep:sqlx"]
[lib]
name = "moniof"
path = "src/lib.rs"
[[test]]
name = "inflight_gauge"
path = "tests/inflight_gauge.rs"
[[test]]
name = "middleware_headers"
path = "tests/middleware_headers.rs"
[[test]]
name = "mongo_command_shape"
path = "tests/mongo_command_shape.rs"
[[test]]
name = "of_detection"
path = "tests/of_detection.rs"
[[test]]
name = "sql_layer"
path = "tests/sql_layer.rs"
[[test]]
name = "stats"
path = "tests/stats.rs"
[[test]]
name = "task_ctx"
path = "tests/task_ctx.rs"
[dependencies.actix-web]
version = "4"
[dependencies.ahash]
version = "0.8"
[dependencies.dashmap]
version = "5"
[dependencies.futures-util]
version = "0.3"
[dependencies.mongodb]
version = "2"
features = ["tokio-runtime"]
optional = true
[dependencies.once_cell]
version = "1.19"
[dependencies.parking_lot]
version = "0.12"
[dependencies.prometheus]
version = "0.14"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio-rustls"]
optional = true
default-features = false
[dependencies.time]
version = "0.3"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"registry",
]