# 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.86"
name = "doiget-cli"
version = "0.6.0"
authors = ["Sota Shimozono"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "doiget CLI binary"
homepage = "https://github.com/sotashimozono/doiget"
readme = "README.md"
keywords = [
    "doi",
    "arxiv",
    "mcp",
    "academic",
    "openaccess",
]
categories = [
    "command-line-utilities",
    "science",
]
license = "MIT"
repository = "https://github.com/sotashimozono/doiget"

[features]
citation = ["doiget-core/citation"]
default = ["oa-only"]
metadata = ["doiget-core/metadata"]
oa-only = ["doiget-core/oa-only"]
tdm-aps = ["doiget-core/tdm-aps"]
tdm-elsevier = ["doiget-core/tdm-elsevier"]
tdm-springer = ["doiget-core/tdm-springer"]

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

[[bin]]
name = "doiget"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.biblatex]
version = "0.11"

[dependencies.camino]
version = "1"
features = ["serde1"]

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "clock",
    "std",
]
default-features = false

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
    "string",
]

[dependencies.dirs]
version = "6"

[dependencies.doiget-core]
version = "0.6.0"

[dependencies.doiget-mcp]
version = "0.6.0"

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls-no-provider",
    "json",
    "gzip",
    "brotli",
    "stream",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "fs",
    "process",
    "signal",
    "io-util",
    "sync",
    "time",
]
default-features = false

[dependencies.toml]
version = "1.1"

[dependencies.tracing]
version = "0.1"

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

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

[dependencies.url]
version = "2"

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false

[dev-dependencies.predicates]
version = "3"

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "deny"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
