[package]
edition = "2021"
rust-version = "1.86"
name = "doiget-core"
version = "0.4.0"
authors = ["Sota Shimozono"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library: Source/Store traits, CapabilityProfile, safekey, provenance log"
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 = ["metadata"]
default = ["oa-only"]
metadata = []
oa-only = []
tdm-aps = ["dep:secrecy"]
tdm-elsevier = ["dep:secrecy"]
tdm-springer = ["dep:secrecy"]
[lib]
name = "doiget_core"
path = "src/lib.rs"
[[test]]
name = "arxiv_metadata_e2e"
path = "tests/arxiv_metadata_e2e.rs"
[[test]]
name = "no_outbound_network"
path = "tests/no_outbound_network.rs"
[[test]]
name = "provenance_migration_e2e"
path = "tests/provenance_migration_e2e.rs"
[[test]]
name = "real_world_fixtures_e2e"
path = "tests/real_world_fixtures_e2e.rs"
[[test]]
name = "redirect_denied_denial_context_e2e"
path = "tests/redirect_denied_denial_context_e2e.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1"
[dependencies.camino]
version = "1"
features = ["serde1"]
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"clock",
"std",
]
default-features = false
[dependencies.flate2]
version = "1"
features = ["rust_backend"]
default-features = false
[dependencies.fs2]
version = "0.4"
[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[dependencies.hex]
version = "0.4"
[dependencies.once_cell]
version = "1"
[dependencies.parking_lot]
version = "0.12"
[dependencies.quick-xml]
version = "0.40"
default-features = false
[dependencies.reqwest]
version = "0.13"
features = [
"rustls-no-provider",
"json",
"gzip",
"brotli",
"stream",
]
default-features = false
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
"logging",
]
default-features = false
[dependencies.secrecy]
version = "0.10"
features = ["serde"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[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.toml_edit]
version = "0.25"
[dependencies.tracing]
version = "0.1"
[dependencies.ulid]
version = "1"
features = ["serde"]
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"fs",
"process",
"signal",
"io-util",
"sync",
"time",
"test-util",
]
default-features = false
[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"