# 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.83"
name = "dukascopy-fx"
version = "0.5.1"
authors = ["Jakub Kluzniak <kluzniakkuba@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library-first Dukascopy market-data fetcher for FX, metals, indices, and equities with ticker API, incremental checkpoints, and universe catalog support."
readme = "README.md"
keywords = [
    "dukascopy",
    "market-data",
    "forex",
    "trading",
    "quant",
]
categories = [
    "api-bindings",
    "finance",
]
license = "MIT"
repository = "https://github.com/Kluzko/dukascopy-fx"

[features]
default = ["logging"]
logging = [
    "log",
    "env_logger",
]
sinks-parquet = [
    "dep:arrow",
    "dep:parquet",
]

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "core_benchmarks"
path = "benches/core_benchmarks.rs"
harness = false

[dependencies.arrow]
version = "53.3"
optional = true

[dependencies.byteorder]
version = "1.4"

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

[dependencies.csv]
version = "1.3"

[dependencies.env_logger]
version = "0.11"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.log]
version = "0.4"
optional = true

[dependencies.lru]
version = "0.13.0"

[dependencies.lzma-rs]
version = "0.3"

[dependencies.parking_lot]
version = "0.12"

[dependencies.parquet]
version = "53.3"
features = ["arrow"]
optional = true

[dependencies.quick-xml]
version = "0.37"

[dependencies.reqwest]
version = "0.11"
features = ["json"]

[dependencies.rust_decimal]
version = "1.32"

[dependencies.scraper]
version = "0.20"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.smol_str]
version = "0.2"
features = ["serde"]

[dependencies.thiserror]
version = "2.0.11"

[dependencies.tokio]
version = "1.36"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
]

[dependencies.toml]
version = "0.8"

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

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.serial_test]
version = "3.2"
