remote-ref 0.1.0

A library for sharing references to !Send/Sync objects across thread boundaries
Documentation
  • Coverage
  • 87.5%
    7 out of 8 items documented0 out of 7 items with examples
  • Size
  • Source code size: 18.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • sapir/remote-ref
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • sapir

remote-ref

This library allows sharing references to objects across thread boundaries, even when those objects aren't Send or Sync. The objects themselves are held in an ObjectStore struct that isn't necessarily Send/Sync, and so the objects can still only be actually used on the owning thread.

This differs from some other crates such as fragile or send_wrapper in that the access rule is enforced at compile time, and that the ObjectStore (currently) requires an extra garbage collection function to be called manually.