# 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"
rust-version = "1.91"
name = "cima-rs"
version = "0.0.6"
authors = ["Jorge Perez Burgos <vaijira@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library and CLI providing access to the Spanish AEMPS CIMA REST API and nomenclator XML parser"
homepage = "https://github.com/vaijira/cima-rs"
documentation = "https://docs.rs/cima-rs"
readme = "README.md"
keywords = [
    "aemps",
    "cima",
    "nomenclator",
    "medications",
    "spain",
]
categories = [
    "api-bindings",
    "parser-implementations",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/vaijira/cima-rs"

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

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

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

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.csv]
version = "1.3"

[dependencies.futures]
version = "0.3"

[dependencies.num_cpus]
version = "1.16"

[dependencies.quick-xml]
version = "0.40"
features = ["serialize"]

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

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

[dependencies.serde_json]
version = "1.0"

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

[dependencies.tracing]
version = "0.1"

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

[dependencies.urlencoding]
version = "2.1"

[dependencies.zip]
version = "8.6"

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

[profile.dev]
opt-level = 0
debug = 0

[profile.dev.package."*"]
opt-level = 3

[profile.dev.build-override]
opt-level = 3
