[package]
edition = "2024"
name = "mongodm"
version = "0.10.2"
authors = ["Devolutions Inc. <infos@devolutions.net>"]
build = false
include = [
"src/**/*",
"README.md",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A thin ODM layer for mongodb"
readme = "README.md"
keywords = [
"mongodb",
"database",
"nosql",
"odm",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Devolutions/mongodm-rs"
[features]
bson-3 = ["mongodb/bson-3"]
chrono = [
"bson2?/chrono-0_4",
"bson3?/chrono-0_4",
]
compat-3-0-0 = [
"mongodb/compat-3-0-0",
"bson2",
]
compat-3-3-0 = [
"mongodb/compat-3-3-0",
"bson3",
]
default = [
"compat-3-0-0",
"rustls",
]
openssl = ["mongodb/openssl-tls"]
rustls = ["mongodb/rustls-tls"]
[lib]
name = "mongodm"
path = "src/lib.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.bson2]
version = "2"
optional = true
package = "bson"
[dependencies.bson3]
version = "3"
optional = true
package = "bson"
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-util]
version = "0.3"
[dependencies.mongodb]
version = "3"
features = ["dns-resolver"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.pretty_assertions]
version = "1"
[dev-dependencies.tokio]
version = "1"
[lints.clippy.doc_markdown]
level = "deny"
priority = -1
[lints.clippy.missing_const_for_fn]
level = "allow"
priority = 0
[lints.clippy.missing_errors_doc]
level = "allow"
priority = 0
[lints.clippy.must_use_candidate]
level = "allow"
priority = 0
[lints.clippy.return_self_not_must_use]
level = "allow"
priority = 0