# 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.75"
name = "scix-client"
version = "0.3.0"
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "LICENSE-MIT",
    "README.md",
    "pyproject.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for the SciX (NASA ADS) API — library, CLI, and MCP server"
homepage = "https://github.com/yipihey/scix-client"
readme = "README.md"
keywords = [
    "scix",
    "ads",
    "nasa",
    "astronomy",
    "bibliography",
]
categories = [
    "api-bindings",
    "science",
]
license = "MIT"
repository = "https://github.com/yipihey/scix-client"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/scix-v{ version }-{ target }.tar.gz"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[features]
cli = [
    "dep:clap",
    "dep:comfy-table",
    "dep:dialoguer",
    "dep:dirs",
]
default = []
python = [
    "dep:pyo3",
    "dep:pythonize",
]

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

[[bin]]
name = "scix"
path = "src/bin/scix.rs"
required-features = ["cli"]

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.comfy-table]
version = "7"
optional = true

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

[dependencies.dirs]
version = "6"
optional = true

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

[dependencies.pythonize]
version = "0.23"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.url]
version = "2"

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