# 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"
rust-version = "1.89"
name = "mik-sdk-macros"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Proc-macros for mik-sdk - routes!, ok!, error!, fetch!, derive macros"
readme = "README.md"
license = "MIT"
repository = "https://github.com/dufeut/mik-sdk"
resolver = "2"

[features]
debug-expand = ["dep:prettyplease"]
default = []
macro-trace = []

[lib]
name = "mik_sdk_macros"
path = "src/lib.rs"
proc-macro = true

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.prettyplease]
version = "0.2"
optional = true

[dependencies.proc-macro2]
version = "1.0"

[dependencies.quote]
version = "1.0"

[dependencies.serde_json]
version = "1.0"

[dependencies.syn]
version = "2.0"
features = [
    "full",
    "parsing",
]

[dependencies.utoipa]
version = "5"

[dev-dependencies.insta]
version = "1.40"

[dev-dependencies.macrotest]
version = "1.0"

[dev-dependencies.trybuild]
version = "1.0"

[lints.clippy]
exhaustive_enums = "warn"
exhaustive_structs = "warn"
expect_used = "warn"
indexing_slicing = "warn"
manual_let_else = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
unwrap_used = "warn"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
