# 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 = "2024"
name = "citum_store"
version = "0.68.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Citum style and locale storage layer — registry, cache, and resolver chain"
homepage = "https://citum.org"
readme = "README.md"
keywords = [
    "citation",
    "csl",
    "storage",
    "registry",
]
categories = [
    "caching",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/citum/citum-core"
resolver = "2"

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

[lib]
name = "citum_store"
path = "src/lib.rs"
doctest = false

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

[dependencies.ciborium]
version = "0.2"

[dependencies.cid]
version = "0.11"
features = [
    "alloc",
    "serde-codec",
]
optional = true
default-features = false

[dependencies.citum-resolver-api]
version = "0.68.0"

[dependencies.citum-schema]
version = "0.68.0"

[dependencies.dirs]
version = "6.0"

[dependencies.gix]
version = "0.83"
features = [
    "blocking-network-client",
    "blocking-http-transport-reqwest-rust-tls",
    "revision",
    "sha1",
]
optional = true
default-features = false

[dependencies.multibase]
version = "0.9"
optional = true

[dependencies.multihash]
version = "0.19"
features = ["alloc"]
optional = true
default-features = false

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.10"
package = "serde_yaml_ng"

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

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.toml]
version = "1.1"

[dev-dependencies.serde_yaml]
version = "0.10"
package = "serde_yaml_ng"

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

[lints.clippy]
allow_attributes_without_reason = "deny"
assigning_clones = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cognitive_complexity = "deny"
default_trait_access = "allow"
doc_markdown = "allow"
empty_docs = "deny"
expect_used = "deny"
format_push_string = "allow"
four_forward_slashes = "deny"
get_unwrap = "deny"
implicit_hasher = "allow"
indexing_slicing = "deny"
items_after_statements = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_safety_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
panic = "deny"
panic_in_result_fn = "deny"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
similar_names = "allow"
string_slice = "deny"
struct_excessive_bools = "allow"
tabs_in_doc_comments = "deny"
todo = "deny"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreachable = "deny"
unused_self = "allow"
unwrap_in_result = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("typescript"))']

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
invalid_html_tags = "warn"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"
