Skip to content

[MOD-14058] Fork the slab crate#8407

Merged
LukeMathWalker merged 1 commit intomasterfrom
fork_slab
Feb 17, 2026
Merged

[MOD-14058] Fork the slab crate#8407
LukeMathWalker merged 1 commit intomasterfrom
fork_slab

Conversation

@LukeMathWalker
Copy link
Copy Markdown
Collaborator

@LukeMathWalker LukeMathWalker commented Feb 17, 2026

Describe the changes in the pull request

As a first step in building up a generational node arena, we need to fork the slab crate.
The only changes in this PR are the following:

  • Update to latest edition
  • Add // SAFETY comments
  • Rename to generational_slab in preparation
  • Move mem_usage method from numeric_range_tree to generational_slab

Which additional issues this PR fixes

  1. MOD-...
  2. #...

Main objects this PR modified

  1. ...

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

If a release note is required (bug fix / new feature / enhancement), describe the user impact of this PR in the title.


Note

Medium Risk
Adds and adopts a forked core container with unsafe internals, and changes memory-usage accounting used by numeric_range_tree, which could impact correctness/perf if the fork diverges from upstream behavior.

Overview
Introduces a new in-workspace crate, generational_slab, by forking slab (now no_std-capable, with optional serde support) and adds a comprehensive test suite.

Updates the workspace to depend on generational_slab instead of the external slab crate, and migrates numeric_range_tree’s arena to use it; mem_usage calculation is moved from numeric_range_tree’s manual estimate to Slab::mem_usage(), and several arena/tree mem_usage/len/capacity accessors are made const.

Tooling is updated to treat generational_slab as a forked crate for license-header linting, and build metadata (Cargo.lock, codespell ignore list) is adjusted accordingly.

Written by Cursor Bugbot for commit c5d4a50. This will update automatically on new commits. Configure here.

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 17, 2026

Codecov Report

❌ Patch coverage is 82.03125% with 92 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.85%. Comparing base (feb1a15) to head (c5d4a50).
⚠️ Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
src/redisearch_rs/generational_slab/src/lib.rs 81.42% 84 Missing and 2 partials ⚠️
src/redisearch_rs/generational_slab/src/builder.rs 95.23% 2 Missing ⚠️
src/redisearch_rs/numeric_range_tree/src/arena.rs 50.00% 2 Missing ⚠️
...isearch_rs/tools/license_header_linter/src/main.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8407      +/-   ##
==========================================
- Coverage   82.87%   82.85%   -0.03%     
==========================================
  Files         414      416       +2     
  Lines       58819    59342     +523     
  Branches    16873    17398     +525     
==========================================
+ Hits        48746    49166     +420     
- Misses       9892     9993     +101     
- Partials      181      183       +2     
Flag Coverage Δ
flow 84.18% <ø> (-0.03%) ⬇️
unit 51.32% <82.03%> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LukeMathWalker LukeMathWalker added this pull request to the merge queue Feb 17, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Feb 17, 2026
@LukeMathWalker LukeMathWalker added this pull request to the merge queue Feb 17, 2026
Merged via the queue into master with commit 606bdab Feb 17, 2026
50 checks passed
@LukeMathWalker LukeMathWalker deleted the fork_slab branch February 17, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants