Skip to content

Commit

Permalink
Merge pull request #68 from earthstar-project/better_spsc
Browse files Browse the repository at this point in the history
Better spsc
  • Loading branch information
AljoschaMeyer authored Jan 4, 2025
2 parents 87637d7 + be96334 commit 14bb9b2
Show file tree
Hide file tree
Showing 17 changed files with 1,541 additions and 418 deletions.
17 changes: 13 additions & 4 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ members = [
"data-model",
"earthstar",
"encoding",
"fairly_unsafe_cell",
"fuzz",
"lcmux",
"meadowcap",
Expand Down
7 changes: 7 additions & 0 deletions fairly_unsafe_cell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "fairly_unsafe_cell"
version = "0.1.0"
edition = "2021"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions fairly_unsafe_cell/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Fairly Unsafe Cell

A hybrid between an `UnsafeCell` and a `RefCell`: comes with an unsafe but RefCell-like API that panics in test builds (`#[cfg(test)]`) when mutable access is not exclusive, but has no overhead (and allows for UB) in non-test builds.
Loading

0 comments on commit 14bb9b2

Please sign in to comment.