#coap #iot #networking #no-std #wasm

no-std toad-stem

This microcrate provides a mutable memory wrapper that is thread-safe and usable on no_std platforms

2 releases (1 stable)

new 1.0.0 May 22, 2023
0.1.0 Mar 11, 2023

#1169 in Network programming

Download history 16/week @ 2023-03-07 36/week @ 2023-03-14 13/week @ 2023-03-21 32/week @ 2023-03-28 103/week @ 2023-04-04 107/week @ 2023-04-11 73/week @ 2023-04-18 50/week @ 2023-04-25 9/week @ 2023-05-02 10/week @ 2023-05-09 41/week @ 2023-05-16

144 downloads per month
Used in 2 crates

MIT/Apache

9KB
151 lines

crates.io docs.rs Maintenance

toad-stem

This microcrate provides a mutable memory wrapper that is thread-safe and usable on no_std platforms by using [std::sync::RwLock] when crate feature std is enabled (this is the default) and falling back to [core::cell::Cell] when std disabled.

the API of the core struct [Stem] was chosen to discourage long-lived immutable references to the cell's contents, so that deadlocks are less likely.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps

Features

  • alloc
  • docs
  • std
  • test