Skip to content

[feat] Add distributed cache trait, type transformation, serialization, compression, encryption#346

Draft
schgoo wants to merge 17 commits intomainfrom
u/schgoo/distributedcache
Draft

[feat] Add distributed cache trait, type transformation, serialization, compression, encryption#346
schgoo wants to merge 17 commits intomainfrom
u/schgoo/distributedcache

Conversation

@schgoo
Copy link
Copy Markdown
Collaborator

@schgoo schgoo commented Mar 27, 2026

No description provided.

schgoo and others added 17 commits March 25, 2026 06:39
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…s/encrypt pipeline

Switch the cachet crate's serialize, compress, and encrypt codecs from
Vec<u8> to BytesView (from the bytesbuf workspace crate). This makes
cloning in the fallback/promotion path O(1) (refcount bump) instead of
O(n) (full byte copy).

Changes:
- Add bytesbuf dependency to cachet
- Update BincodeEncoder/BincodeCodec to produce/consume BytesView
- Update ZstdCodec to compress/decompress BytesView
- Update AesGcmCodec to encrypt/decrypt BytesView
- Update builder transform.rs serialize/compress/encrypt methods
- Update serialize_pipeline example to use BytesView
- Re-export BytesView from cachet::lib
- Add Hash impl for BytesView in bytesbuf crate
- Add bytesbuf::view::BytesView to allowed_external_types

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

⚠️ Breaking Changes Detected


--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.46.0/src/lints/enum_variant_added.ron

Failed in:
  variant CacheOp:Len in /home/runner/work/oxidizer/oxidizer/crates/cachet_tier/src/testing.rs:33

If the breaking changes are intentional then everything is fine - this message is merely informative.

Remember to apply a version number bump with the correct severity when publishing a version with breaking changes (1.x.x -> 2.x.x or 0.1.x -> 0.2.x).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant