# 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 = "pleme-codegen"
version = "0.1.1"
authors = ["Pleme Development Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Code generation macros for Pleme services with Brazilian market features"
homepage = "https://github.com/pleme-io/pleme-codegen"
readme = "README.md"
keywords = [
    "codegen",
    "macros",
    "proc-macro",
    "graphql",
    "database",
]
categories = ["development-tools::procedural-macro-helpers"]
license = "MIT"
repository = "https://github.com/pleme-io/pleme-codegen"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
brazilian = []
database = []
default = [
    "brazilian",
    "graphql",
    "database",
]
graphql = []
service = []

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

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

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

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

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

[dependencies.async-graphql]
version = "6.0"
features = [
    "chrono",
    "uuid",
]

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

[dependencies.chrono]
version = "0.4"

[dependencies.chrono-tz]
version = "0.8"

[dependencies.deadpool-redis]
version = "0.14"

[dependencies.heck]
version = "0.4"

[dependencies.lazy_static]
version = "1.4"

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

[dependencies.quote]
version = "1.0"

[dependencies.rand]
version = "0.8"

[dependencies.redis]
version = "0.24"
features = ["tokio-comp"]

[dependencies.regex]
version = "1.0"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.7"
features = [
    "chrono",
    "postgres",
    "runtime-tokio-rustls",
    "uuid",
]

[dependencies.syn]
version = "2.0"
features = [
    "extra-traits",
    "full",
]

[dependencies.thiserror]
version = "1.0"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.0"

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.deadpool-redis]
version = "0.14"

[dev-dependencies.fake]
version = "2.8"
features = [
    "chrono",
    "derive",
    "uuid",
]

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

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

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

[dev-dependencies.rust_decimal]
version = "1.0"
features = ["serde"]

[dev-dependencies.sqlx]
version = "0.7"
features = [
    "chrono",
    "json",
    "postgres",
    "runtime-tokio-rustls",
    "rust_decimal",
    "uuid",
]

[dev-dependencies.syn]
version = "2.0"
features = [
    "extra-traits",
    "full",
    "visit",
]

[dev-dependencies.tempfile]
version = "3.0"

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

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

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

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

[dev-dependencies.uuid]
version = "1.0"
features = ["v4"]

[profile.bench]
opt-level = 3
lto = true
codegen-units = 1
debug = 0

[profile.test]
opt-level = 1
debug = 2
overflow-checks = true
