Pinboard

Crates.io - Pinboard Build Status License: MIT

An eventually-consistent, lock-free, mutable store of shared data.

Just stick it on the pinboard!

Documentation

https://docs.rs/pinboard/

Usage

Install from crates.io by adding pinboard to your Cargo.toml:

text [dependencies] pinboard = "2.0.0"

Now you can create a Pinboard, share it between your users (be they Futures, threads or really anything else) and start sharing data!

```rust,no_run use pinboard::NonEmptyPinboard; use std::{thread, time::Duration};

let weather_report = NonEmptyPinboard::new("Sunny");

crossbeam::scope(|scope| { scope.spawn(|| { thread::sleep(Duration::fromsecs(10)); weatherreport.set("Raining"); }); scope.spawn(|| { loop { println!("The weather is {}", weatherreport.getref()); thread::sleep(Duration::from_secs(1)); } }); }); ```