Skip to content

docs: add runnable examples, capability matrix and verification notes - #43

Merged
SF-Zhou merged 1 commit into
mainfrom
dev
Jul 16, 2026
Merged

docs: add runnable examples, capability matrix and verification notes#43
SF-Zhou merged 1 commit into
mainfrom
dev

Conversation

@SF-Zhou

@SF-Zhou SF-Zhou commented Jul 16, 2026

Copy link
Copy Markdown
Owner
  • Add Installation section with cargo add snippet and MSRV (1.75) note
  • Add 'Locks Are Not Reentrant' caveat: same-key operations while holding an Entry deadlock; suggest try_entry as the escape hatch
  • State the MIT OR Apache-2.0 dual license explicitly in the License section instead of only the FOSSA badge
  • Add three self-checking examples: singleflight (request coalescing, backend hit exactly once across 8 concurrent misses), rate_limiter (per-user token bucket) and lru_session_store (bounded LRU store
    with peek/pop_lru)
  • README: add capability comparison matrix vs dashmap/moka with a rule-of-thumb selection guide, link the examples, and surface the CI verification story (Miri + TSan + MSRV + 5 targets) up front
  • CHANGELOG: record the documentation additions under 0.2.3

Copilot AI review requested due to automatic review settings July 16, 2026 03:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR prepares the lockmap crate for the 0.2.3 release by updating package metadata and polishing project documentation (README + changelog) to reflect the new release, usage guidance, and licensing.

Changes:

  • Add an Installation section to the README, including a cargo add snippet and MSRV (1.75) statement.
  • Document a non-reentrancy/deadlock caveat in the README and explicitly state dual licensing (MIT OR Apache-2.0).
  • Finalize the changelog for 0.2.3 (2026-07-16) and bump Cargo.toml version to 0.2.3.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
README.md Adds installation instructions, clarifies caveats around locking behavior, and expands license text.
CHANGELOG.md Renames “Unreleased” to 0.2.3 with release date and adds the compare link.
Cargo.toml Bumps crate version from 0.2.2 to 0.2.3.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment on lines +172 to +173
Calling any map operation for a key **while already holding that key's `Entry`** deadlocks — this includes `get`, `insert`, `remove`, `entry`, and whole-map operations such as `clear`, `for_each` and `retain`.
> **Note**: Drop the guard first, or use `try_entry` / `try_entry_by_ref` when you cannot statically rule out re-entry.
@SF-Zhou SF-Zhou changed the title release: bump version to 0.2.3 docs: add runnable examples, capability matrix and verification notes Jul 16, 2026
- Add Installation section with cargo add snippet and MSRV (1.75) note
- Add 'Locks Are Not Reentrant' caveat: same-key operations while
  holding an Entry deadlock; suggest try_entry as the escape hatch
- State the MIT OR Apache-2.0 dual license explicitly in the License
  section instead of only the FOSSA badge
- Add three self-checking examples: singleflight (request coalescing,
  backend hit exactly once across 8 concurrent misses), rate_limiter
  (per-user token bucket) and lru_session_store (bounded LRU store
  with peek/pop_lru)
- README: add capability comparison matrix vs dashmap/moka with a
  rule-of-thumb selection guide, link the examples, and surface the
  CI verification story (Miri + TSan + MSRV + 5 targets) up front
- CHANGELOG: record the documentation additions under 0.2.3
@SF-Zhou
SF-Zhou merged commit 4f28492 into main Jul 16, 2026
13 checks passed
@SF-Zhou
SF-Zhou deleted the dev branch July 16, 2026 04:34
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (ad23b33) to head (79f3d5f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files           3        3           
  Lines        2272     2272           
=======================================
  Hits         2256     2256           
  Misses         16       16           

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

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.

2 participants