rat_memcache 0.2.8

高性能 Memcached 协议兼容服务器,支持双层缓存和持久化存储
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 = "rat_memcache"
version = "0.2.8"
authors = ["0ldm0s <oldmos@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "高性能 Memcached 协议兼容服务器,支持双层缓存和持久化存储"
homepage = "https://github.com/0ldm0s/rat_memcache"
documentation = "https://docs.rs/rat_memcache"
readme = "README.md"
keywords = [
    "memcached",
    "cache",
    "server",
    "database",
    "performance",
]
categories = [
    "caching",
    "database",
    "network-programming",
    "memory-management",
]
license = "LGPL-3.0-or-later"
repository = "https://github.com/0ldm0s/rat_memcache"

[features]
cache-lib = []
compression-lz4 = ["melange_db/compression-lz4"]
compression-none = ["melange_db/compression-none"]
compression-zstd = ["melange_db/compression-zstd"]
default = [
    "cache-lib",
    "ttl-support",
]
full-features = [
    "cache-lib",
    "ttl-support",
    "metrics",
    "melange-storage",
    "lz4-compression",
    "mimalloc-allocator",
]
lz4-compression = []
melange-storage = ["melange_db"]
metrics = []
mimalloc-allocator = ["mimalloc"]
server = ["full-features"]
ttl-support = []

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

[[bin]]
name = "rat_memcached"
path = "src/bin/rat_memcached.rs"
doc = false
required-features = ["server"]

[[example]]
name = "test_l1_no_compression"
path = "examples/test_l1_no_compression.rs"

[[example]]
name = "test_library_logging"
path = "examples/test_library_logging.rs"

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.bincode]
version = "2.0"

[dependencies.bytes]
version = "1.5"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4.4"

[dependencies.crossbeam]
version = "0.8"

[dependencies.dashmap]
version = "5.5"

[dependencies.fxhash]
version = "0.2"

[dependencies.lz4]
version = "1.24"

[dependencies.melange_db]
version = "0.2.8"
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.rat_logger]
version = "0.3"

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

[dependencies.sysinfo]
version = "0.30"

[dependencies.tempfile]
version = "3.8"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.toml]
version = "0.8"

[dev-dependencies.criterion]
version = "0.5"

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

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(unix)".dependencies.mimalloc]
version = "0.1"
optional = true
default-features = false

[target."cfg(windows)".dependencies.mimalloc]
version = "0.1"
optional = true
default-features = false

[target."cfg(windows)".dependencies.windows-sys]
version = "0.52"
features = ["Win32_Networking_WinSock"]