Repository navigation
feat: multithread support - #3
Merged
Merged
Conversation
George-Miao
commented
Mar 5, 2026
Member
- feat: coerce to slice
- feat: multithread support
George-Miao
marked this pull request as ready for review
March 6, 2026 03:35
George-Miao
force-pushed
the
feat/mt
branch
2 times, most recently
from
March 6, 2026 03:39
5429616 to
1742fd9
Compare
There was a problem hiding this comment.
Pull request overview
This PR refactors the crate toward supporting both single-threaded and multi-threaded variants of ThinCell, and adds an array-to-slice coercion helper, alongside README and dependency updates.
Changes:
- Refactor core
ThinCellimplementation behind athin_cell!macro and introducesync/unsyncmodule structure. - Rename fat-pointer helper to
is_sized(inverse of previousis_fat). - Update README to describe
syncvsunsyncborrow semantics and addsynchronydependency.
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/tests.rs | Removed existing integration tests for ThinCell. |
| tests/send_sync.rs | Removed compile-time/runtime Send/Sync assertions. |
| src/state.rs | Removed previous State implementation and its unit tests. |
| src/lib.rs | Refactors implementation into a macro and declares new sync/unsync modules. |
| src/fat_ptr.rs | Renames/changes fat-pointer sizing helper (is_fat → is_sized). |
| README.md | Updates crate description and documents new sync/unsync borrow behavior. |
| Cargo.toml | Adds synchrony dependency. |
| Cargo.lock | Locks synchrony dependency. |
| flake.nix | Simplifies dev shell inputs (adds cargo-nextest). |
Comments suppressed due to low confidence (1)
README.md:33
- The “Simplified layout” snippet is marked as Rust; it’s currently not valid syntax because it’s missing a comma after
state: usize. Fixing the snippet avoids confusing readers copying it into code.
struct Inner<T> {
metadata: usize,
state: usize
data: T,
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
George-Miao
force-pushed
the
feat/mt
branch
2 times, most recently
from
March 6, 2026 03:44
f4710dc to
2595fc4
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 18 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.