#sync #thread

macro inert_derive

See the inert crate

5 releases

✓ Uses Rust 2018 edition

new 0.1.4 Mar 19, 2019
0.1.3 Mar 12, 2019
0.1.2 Mar 8, 2019
0.1.1 Mar 6, 2019
0.1.0 Feb 25, 2019

#12 in #sync

Download history 6/week @ 2019-02-19 9/week @ 2019-02-26 24/week @ 2019-03-05 21/week @ 2019-03-12

23 downloads per month
Used in 1 crate

Apache-2.0 OR MIT

195 lines


This is a mechanism to access non-Sync values in Sync contexts.

How is this sound?

When the user create a &Inert<T> value from a &T, they must swear on the holy baguette that they won't use the T directly until all the Inert wrappers go out of scope, while the various implementations of the Neutralize trait make sure that the non-Sync behaviour of the T cannot be observed through the wrapper.

How can I help?

Improve documentation, review the code (most importantly everything because everything is unsafe), make use of it.


~18K SLoC