[package]
name = "citum_store"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
description = "Citum style and locale storage layer — registry, cache, and resolver chain"
readme = "README.md"
keywords = ["citation", "csl", "storage", "registry"]
categories = ["caching", "text-processing"]

[dependencies]
citum-schema = { workspace = true }
citum-resolver-api = { workspace = true }
dirs = "6.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = { package = "serde_yaml_ng", version = "0.10" }
ciborium = "0.2"
thiserror = "2.0"
toml = "1.1"
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"], optional = true }
sha2 = { version = "0.11", optional = true }
tempfile = { version = "3", optional = true }
cid = { version = "0.11", default-features = false, features = ["alloc", "serde-codec"], optional = true }
multihash = { version = "0.19", default-features = false, features = ["alloc"], optional = true }
multibase = { version = "0.9", optional = true }
gix = { version = "0.83", default-features = false, features = ["blocking-network-client", "blocking-http-transport-reqwest-rust-tls", "revision", "sha1"], optional = true }

[features]
hub = []
http = ["citum-resolver-api/http", "dep:reqwest", "dep:sha2", "dep:tempfile", "dep:cid", "dep:multihash", "dep:multibase", "dep:gix"]

[dev-dependencies]
tempfile = "3"
serde_yaml = { package = "serde_yaml_ng", version = "0.10" }

[lints]
workspace = true

[lib]
doctest = false
