force-send-sync 2.0.0

Unsafe wrappers to force Send and Sync.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 6.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • pacman82/force-send-sync
    1 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pacman82

Force Send Sync

Tells the compiler things are Send and/or Sync.

Reasons not to use this crate

Usecases for this crate are extremly rare. If you have a compiler error which mentions types not being Send and Sync and you do not understand precisly what is wrong and how to fix it, this crate is unlikely to solve it. It will only turn your compile time problem into a much messier one which might only show itself at runtime, occasionally.

Reasons to use this crate

  • You have a type which is actually Send and/or Sync but the compiler does not know it. Further you can not implement these yourself, because the code lives Upstream (maybe you could contribute there?).
  • You have a really weird situation there safety of these depends on configuration read at runtime and you need a way to promote safety of types.