# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "mongo-collection"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A trait and derive macro for mapping Rust types to MongoDB collections with automatic pluralization"
readme = "README.md"
keywords = [
    "mongodb",
    "collection",
    "database",
    "orm",
    "async",
]
categories = [
    "database",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/zhenglongbing/mongo-collection"

[features]
default = []
openapi = ["utoipa"]

[lib]
name = "mongo_collection"
path = "src/lib.rs"

[[example]]
name = "full_example"
path = "examples/full_example.rs"

[[example]]
name = "repository_macro"
path = "examples/repository_macro.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.futures]
version = "0.3"

[dependencies.mongo-collection-macro]
version = "0.2"

[dependencies.mongodb]
version = "3.4"
features = [
    "dns-resolver",
    "rustls-tls",
    "bson-3",
]

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.smart-default]
version = "0.7"

[dependencies.utoipa]
version = "5.3"
features = ["uuid"]
optional = true

[dev-dependencies.tokio]
version = "1.0"
features = ["full"]
