# 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"
rust-version = "1.85"
name = "image_charts"
version = "6.1.71"
authors = ["Francois-Guillaume Ribreau <github@fgribreau.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Official Image-Charts.com API client library"
homepage = "https://www.image-charts.com/"
documentation = "https://docs.rs/image_charts"
readme = "README.md"
keywords = [
    "front-end",
    "backend-end",
    "chart",
    "charts",
    "chart-url",
]
categories = [
    "api-bindings",
    "visualization",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/image-charts/rust"

[features]
async = [
    "reqwest/default-tls",
    "dep:tokio",
]
blocking = [
    "reqwest/blocking",
    "reqwest/default-tls",
]
default = ["async"]
full = [
    "async",
    "blocking",
]

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

[[example]]
name = "download_chart_as_buffer"
path = "examples/download_chart_as_buffer.rs"
required-features = ["async"]

[[example]]
name = "download_chart_as_data_uri"
path = "examples/download_chart_as_data_uri.rs"
required-features = ["async"]

[[example]]
name = "download_chart_as_image"
path = "examples/download_chart_as_image.rs"
required-features = ["async"]

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

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

[dependencies.base64]
version = "0.21"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.reqwest]
version = "0.11"
features = ["json"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1"
features = ["fs"]
optional = true

[dependencies.urlencoding]
version = "2.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
