Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Please see each crate's change log below:
- [`anyspawn`](./crates/anyspawn/CHANGELOG.md)
- [`bytesbuf`](./crates/bytesbuf/CHANGELOG.md)
- [`bytesbuf_io`](./crates/bytesbuf_io/CHANGELOG.md)
- [`cachelon`](./crates/cachelon/CHANGELOG.md)
- [`data_privacy`](./crates/data_privacy/CHANGELOG.md)
- [`data_privacy_macros`](./crates/data_privacy_macros/CHANGELOG.md)
- [`data_privacy_macros_impl`](./crates/data_privacy_macros_impl/CHANGELOG.md)
Expand Down
124 changes: 120 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ repository = "https://github.com/microsoft/oxidizer"
anyspawn = { path = "crates/anyspawn", default-features = false, version = "0.1.0" }
bytesbuf = { path = "crates/bytesbuf", default-features = false, version = "0.2.2" }
bytesbuf_io = { path = "crates/bytesbuf_io", default-features = false, version = "0.2.0" }
cachelon = { path = "crates/cachelon", default-features = false, version = "0.1.0" }
data_privacy = { path = "crates/data_privacy", default-features = false, version = "0.10.1" }
data_privacy_macros = { path = "crates/data_privacy_macros", default-features = false, version = "0.9.0" }
data_privacy_macros_impl = { path = "crates/data_privacy_macros_impl", default-features = false, version = "0.9.0" }
Expand All @@ -49,6 +50,7 @@ uniflight = { path = "crates/uniflight", default-features = false, version = "0.
ahash = { version = "0.8", default-features = false }
alloc_tracker = { version = "0.5.9", default-features = false }
anyhow = { version = "1.0.100", default-features = false }
arrayvec = { version = "0.7.3", default-features = false }
async-once-cell = { version = "0.5", default-features = false }
bytes = { version = "1.11.0", default-features = false }
chrono = { version = "0.4.40", default-features = false }
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

This repository contains a set of crates that help you build robust highly scalable services in Rust.

- [Crates](#crates)
- [About this Repo](#about-this-repo)
- [The Oxidizer Project](#the-oxidizer-project)
- [Crates](#crates)
- [About this Repo](#about-this-repo)
- [Adding New Crates](#adding-new-crates)
- [Publishing Crates](#publishing-crates)
- [Documenting Crates](#documenting-crates)
Expand All @@ -29,6 +30,9 @@ These are the primary crates built out of this repo:
- [`bytesbuf`](./crates/bytesbuf/README.md) - Types for creating and manipulating byte sequences.
- [`bytesbuf_io`](./crates/bytesbuf_io/README.md) - Asynchronous I/O abstractions expressed via `bytesbuf` types.
- [`data_privacy`](./crates/data_privacy/README.md) - Mechanisms to classify, manipulate, and redact sensitive data.
- [`data_privacy_macros`](./crates/data_privacy_macros/README.md) - Macros for the `data_privacy` crate.
- [`data_privacy_macros_impl`](./crates/data_privacy_macros_impl/README.md) - Macros for the `data_privacy` crate.
- [`cachelon`](./crates/echelon/README.md) - A composable, customizable multi-tier caching library with rich feature support.
- [`fundle`](./crates/fundle/README.md) - Compile-time safe dependency injection for Rust.
- [`layered`](./crates/layered/README.md) - A foundational service abstraction for building composable, middleware-driven systems.
- [`ohno`](./crates/ohno/README.md) - High-quality Rust error handling.
Expand Down
1 change: 1 addition & 0 deletions crates/cachelon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Changelog
155 changes: 155 additions & 0 deletions crates/cachelon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "cachelon"
description = "A composable, customizable multi-tier caching library with rich feature support."
version = "0.1.0"
readme = "README.md"
keywords = ["oxidizer", "caching", "concurrency"]
categories = ["caching", "concurrency"]

edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo_check_external_types]
allowed_external_types = []

[features]
default = [
"dynamic-cache",
"memory",
"service",
"telemetry",
"tokio",
]
dynamic-cache = ["dep:dynosaur"]
telemetry = [
"dep:arrayvec",
"dep:opentelemetry",
"dep:opentelemetry_sdk",
]
test-util = ["cachelon_tier/test-util", "tick/test-util"]
memory = ["dep:cachelon_memory"]
service = ["dep:cachelon_service", "dep:layered"]
tokio = [
"dep:fundle",
"dep:uniflight",
"dep:anyspawn",
"dep:tokio",
"tick/tokio",
"anyspawn/tokio",
]

[dependencies]
alloc_tracker = { workspace = true }
arrayvec = { workspace = true, optional = true }
cachelon_memory = { path = "../cachelon_memory", optional = true }
cachelon_tier = { path = "../cachelon_tier" }
cachelon_service = { path = "../cachelon_service", optional = true }
criterion = { workspace = true }
dynosaur = { workspace = true, optional = true }
fundle = { workspace = true, optional = true }
futures = { workspace = true, features = ["async-await", "executor"] }
layered = { workspace = true, optional = true }
ohno = { workspace = true }
opentelemetry = { workspace = true, optional = true, features = [
"metrics",
"logs",
] }
opentelemetry_sdk = { workspace = true, optional = true, features = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should not depend on opentelemetry_sdk, that's very heavy dependency. opentelemetry should be enough

"logs",
"metrics",
] }
parking_lot = { version = "0.12.5" }
uniflight = { workspace = true, optional = true }
anyspawn = { workspace = true, optional = true }
tick = { workspace = true, features = [] }
thread_aware = { workspace = true }
tokio = { workspace = true, features = ["rt"], optional = true }

[dev-dependencies]
cachelon_tier = { path = "../cachelon_tier", features = ["test-util"] }
dynosaur = { workspace = true }
fundle = { workspace = true }
opentelemetry_sdk = { workspace = true, features = ["logs", "testing"] }
tick = { workspace = true, features = ["test-util"] }
tokio = { workspace = true, features = ["rt"] }
tracing-subscriber = { workspace = true }

[[bench]]
name = "operations"
harness = false
required-features = ["telemetry", "test-util", "tokio"]

[[bench]]
name = "dynamic"
harness = false
required-features = ["test-util", "tokio"]

[[bench]]
name = "refresh"
harness = false
required-features = ["test-util", "tokio"]

[[example]]
name = "simple"
required-features = ["memory", "tokio"]

[[example]]
name = "wrapped"
required-features = ["memory", "telemetry", "tokio"]

[[example]]
name = "fallback"
required-features = ["memory", "telemetry", "tokio"]

[[example]]
name = "multi_tier"
required-features = ["memory", "telemetry", "tokio"]

[[example]]
name = "dynamic"
required-features = ["dynamic-cache", "memory", "telemetry", "tokio"]

[[example]]
name = "get_or_insert"
required-features = ["memory", "tokio"]

[[example]]
name = "stampede_protection"
required-features = ["memory", "tokio"]

[[example]]
name = "refresh"
required-features = ["memory", "tokio"]

[[example]]
name = "mock_testing"
required-features = ["test-util", "tokio"]

[[example]]
name = "cache_as_service"
required-features = ["memory", "service", "tokio"]

[[example]]
name = "service_as_storage"
required-features = ["service", "tokio"]

[[example]]
name = "multi_tier_service"
required-features = ["memory", "service", "tokio"]

[[example]]
name = "service_middleware_composition"
required-features = ["memory", "service", "tokio"]

[lints]
workspace = true
Loading
Loading