# 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 = "2021"
rust-version = "1.70"
name = "mongosh"
version = "0.1.0"
authors = ["guoyunlei"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance MongoDB Shell implementation in Rust"
readme = "README.md"
keywords = [
    "mongodb",
    "shell",
    "database",
    "repl",
    "cli",
]
categories = [
    "command-line-utilities",
    "database",
]
license = "MIT"
repository = "https://github.com/daleione/mongosh"

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bson]
version = "2.11"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "cargo",
]

[dependencies.dirs]
version = "5.0"

[dependencies.futures]
version = "0.3"

[dependencies.mongodb]
version = "3.0"

[dependencies.regex]
version = "1.10"

[dependencies.rustyline]
version = "14.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.40"
features = ["full"]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dev-dependencies.mockall]
version = "0.13"

[dev-dependencies.tokio-test]
version = "0.4"

[profile.dev]
opt-level = 0
debug = 2

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
