# 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"
name = "cmdreg"
version = "0.1.4"
authors = ["luoluoqixi"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight string-keyed command dispatcher with axum-style extractors for Rust"
readme = "README.md"
keywords = [
    "command",
    "dispatcher",
    "handler",
    "registry",
    "async",
]
categories = [
    "rust-patterns",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/luoluoqixi/cmdreg"

[features]
default = []
full = ["macros"]
macros = [
    "dep:cmdreg-macros",
    "dep:inventory",
]

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

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"

[[test]]
name = "macro_test"
path = "tests/macro_test.rs"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.cmdreg-macros]
version = "0.1"
optional = true

[dependencies.inventory]
version = "0.3"
optional = true

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

[dependencies.serde_json]
version = "1.0"

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