# 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 = "esteria-api-client"
version = "0.0.20"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust-based client library for sending SMS messages via the Esteria API"
readme = "README.md"
license = "GPL-3.0-only"

[features]
cli = ["clap"]
default = []
python = [
    "pyo3",
    "pyo3-async-runtimes",
]

[lib]
name = "esteria_api_client"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "esteria-api-client"
path = "src/main.rs"
required-features = ["cli"]

[dependencies.bitflags]
version = "2.11.1"

[dependencies.chrono]
version = "0.4.44"

[dependencies.clap]
version = "4.6.1"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.env_logger]
version = "0.11.10"

[dependencies.log]
version = "0.4.29"

[dependencies.pyo3]
version = "0.28.3"
features = ["extension-module"]
optional = true

[dependencies.pyo3-async-runtimes]
version = "0.28.0"
features = ["tokio-runtime"]
optional = true

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "query",
]

[dependencies.thiserror]
version = "2.0.18"

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

[dev-dependencies.httpmock]
version = "0.8.3"

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
debug = 0
strip = true
