diff --git a/Cargo.lock b/Cargo.lock index f5a77ec..a4f2548 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,4 +4,4 @@ version = 3 [[package]] name = "mutex-extra" -version = "0.9.8" +version = "0.9.9" diff --git a/Cargo.toml b/Cargo.toml index a506942..0f4b9b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "mutex-extra" -version = "0.9.8" +version = "0.9.9" description = "`RefMutex` that is similar to `Mutex` but is `Sync` and `Send` even if `T` isn't `Send`." homepage = "https://github.com/vporton/ref_mutex" repository = "https://github.com/vporton/ref_mutex" diff --git a/README.md b/README.md index ef8b428..b76d1c1 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,10 @@ ## `ref_mutex` Rust library -**My code seems erroneous!** Don't use. +Please instead use `Mutex>` (https://docs.rs/send-cell/). -_Not much tested._ +--- -This library implement `RefMutex` that is similar to `Mutex` but is `Sync` and `Send` -even if `T` isn't `Send`. - -TODO: It seems this can be instead be done as a patch to standard library: +**My code is erroneous!** Don't use. -```rust -unsafe impl<'mutex, T: ?Sized + Sync> Sync for Mutex<'mutex, T> {} -unsafe impl<'mutex, T: ?Sized> Send for Mutex<'mutex, T> { } -``` \ No newline at end of file +This library implement `RefMutex` that is similar to `Mutex` but is `Sync` and `Send` +even if `T` isn't `Send`. \ No newline at end of file