[package]
edition = "2024"
rust-version = "1.85"
name = "crossref-client"
version = "0.2.1"
authors = [
"Emil Lindfors <emil@lindfors.no>",
"Matthias Seitz <matthias.seitz@outlook.de>",
]
build = false
exclude = ["/.github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async Rust client for the Crossref REST API"
documentation = "https://docs.rs/crossref-client"
readme = "README.md"
keywords = [
"crossref",
"doi",
"api-client",
"bibliography",
]
categories = [
"api-bindings",
"science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/EmilLindfors/crossref-client"
[features]
cli = [
"dep:clap",
"dep:tracing-subscriber",
"tokio/macros",
"tokio/rt-multi-thread",
]
[lib]
name = "crossref_client"
path = "src/lib.rs"
[[bin]]
name = "crossref"
path = "src/bin/crossref/main.rs"
required-features = ["cli"]
[[example]]
name = "check_pool"
path = "examples/check_pool.rs"
[[example]]
name = "peer_review"
path = "examples/peer_review.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "routes"
path = "tests/routes.rs"
[[test]]
name = "work_shapes"
path = "tests/work_shapes.rs"
[dependencies.async-iterator]
version = "2.3"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.clap]
version = "4.6"
features = ["derive"]
optional = true
[dependencies.percent-encoding]
version = "2.3"
[dependencies.reqwest]
version = "0.13"
features = ["json"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = ["time"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"test-util",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"