mx-cache 0.1.0

Shared cache utilities (local + Redis) for MultiversX Rust services.
Documentation
# 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 = "mx-cache"
version = "0.1.0"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "src/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared cache utilities (local + Redis) for MultiversX Rust services."
documentation = "https://docs.rs/mx-cache"
readme = "README.md"
keywords = [
    "multiversx",
    "cache",
    "redis",
    "moka",
    "blockchain",
]
categories = [
    "caching",
    "database",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/multiversx/mx-chain-rust"
resolver = "2"

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.bytes]
version = "1.11.1"

[dependencies.equivalent]
version = "1.0"

[dependencies.moka]
version = "0.12.10"
features = ["sync"]

[dependencies.redis]
version = "0.32.7"
features = [
    "aio",
    "tokio-comp",
    "connection-manager",
    "tokio-rustls-comp",
    "sentinel",
]
default-features = false

[dependencies.tracing]
version = "0.1.40"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.proptest]
version = "1.6"

[dev-dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "signal",
    "rt-multi-thread",
    "macros",
    "time",
    "test-util",
]

[dev-dependencies.tokio-test]
version = "0.4"

[lints.clippy]
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
clone_on_ref_ptr = "allow"
cloned_instead_of_copied = "allow"
collection_is_never_read = "allow"
const_is_empty = "allow"
create_dir = "allow"
dbg_macro = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
enum_glob_use = "allow"
exit = "allow"
expect_used = "allow"
float_cmp_const = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
implicit_clone = "allow"
inline_always = "allow"
items_after_statements = "allow"
iter_on_empty_collections = "allow"
large_types_passed_by_value = "allow"
manual_let_else = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "allow"
missing_assert_message = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_inline_in_public_items = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mut_mut = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
option_option = "allow"
panic = "allow"
print_stderr = "allow"
print_stdout = "allow"
rc_mutex = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
rest_pat_in_fully_bound_structs = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
str_to_string = "allow"
string_lit_as_bytes = "allow"
string_to_string = "allow"
struct_excessive_bools = "allow"
todo = "allow"
too_many_arguments = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "allow"
unimplemented = "allow"
uninlined_format_args = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unwrap_used = "allow"
use_self = "allow"
useless_let_if_seq = "allow"
verbose_file_reads = "allow"
wildcard_imports = "allow"

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

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

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

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

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

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

[lints.rust]
missing_docs = "allow"
unreachable_pub = "allow"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "allow"