# 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 = "pywatt_sdk"
version = "0.2.8"
authors = ["James Kueller <james@pma-electric.com>"]
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Standardized SDK for building PyWatt modules in Rust"
homepage = "https://github.com/frostdev-ops/pywatt_sdk"
documentation = "https://docs.rs/pywatt_sdk"
readme = "README.md"
keywords = [
    "ipc",
    "sdk",
    "pywatt",
]
categories = [
    "development-tools",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/frostdev-ops/pywatt_sdk"

[features]
builder = []
cache = []
cors = []
database = ["sqlx"]
default = []
discover_endpoints = []
file_cache = [
    "cache",
    "fs2",
    "tempfile",
]
integration_tests = []
ipc = ["jwt_auth"]
jwt_auth = [
    "jsonwebtoken",
    "tower",
]
jwt_auth_v2 = ["jwt_auth"]
macros = ["proc_macros"]
memcached = [
    "cache",
    "memcache",
]
metrics = [
    "router_ext",
    "prometheus",
    "dep:metrics",
]
mysql = [
    "database",
    "sqlx/mysql",
]
postgres = [
    "database",
    "sqlx/postgres",
]
proc_macros = [
    "proc-macro2",
    "quote",
    "syn",
]
redis_cache = [
    "cache",
    "redis",
]
router_ext = []
secret_client_logging = []
sqlite = [
    "database",
    "sqlx/sqlite",
]
tracing = []

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

[[bin]]
name = "database_tool"
path = "src/bin/database_tool.rs"

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

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

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

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

[dependencies.aho-corasick]
version = "1.1.3"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.axum]
version = "0.7.9"
features = [
    "macros",
    "json",
]

[dependencies.base64]
version = "0.13.0"

[dependencies.bincode]
version = "2.0.1"

[dependencies.clap]
version = "4.4"
features = ["derive"]

[dependencies.dashmap]
version = "5.5"

[dependencies.fs2]
version = "0.4.3"
optional = true

[dependencies.futures]
version = "0.3.31"

[dependencies.http]
version = "1.1"

[dependencies.hyper]
version = "0.14"
features = ["full"]

[dependencies.hyper-util]
version = "0.1.11"
features = [
    "server",
    "tokio",
]

[dependencies.jsonwebtoken]
version = "8.1"
optional = true

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.memcache]
version = "0.17.0"
optional = true

[dependencies.metrics]
version = "0.21"
optional = true

[dependencies.notify]
version = "6.0"
features = ["serde"]
default-features = false

[dependencies.once_cell]
version = "1.18"

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

[dependencies.prometheus]
version = "0.13"
optional = true

[dependencies.quote]
version = "1.0"
optional = true

[dependencies.rand]
version = "0.9.1"

[dependencies.redis]
version = "0.23.0"
features = [
    "tokio-comp",
    "connection-manager",
]
optional = true

[dependencies.secrecy]
version = "0.8"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sqlx]
version = "0.7"
features = [
    "runtime-tokio-rustls",
    "macros",
    "json",
    "chrono",
    "uuid",
]
optional = true

[dependencies.syn]
version = "2.0"
features = ["full"]
optional = true

[dependencies.tempfile]
version = "3.8.0"
optional = true

[dependencies.thiserror]
version = "1"

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

[dependencies.tokio-stream]
version = "0.1"
features = ["net"]

[dependencies.toml]
version = "0.8"

[dependencies.tower]
version = "0.5.2"
optional = true

[dependencies.tower-service]
version = "0.3.3"

[dependencies.tracing]
version = "0.1"

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

[dependencies.uuid]
version = "1.4"
features = [
    "v4",
    "serde",
]

[dependencies.zeroize]
version = "1.5"

[build-dependencies.chrono]
version = "0.4"
