5 releases

new 0.1.5 Apr 17, 2024
0.1.4 Apr 17, 2024
0.1.0 Mar 20, 2024

#648 in Data structures

Download history 202/week @ 2024-03-20 184/week @ 2024-03-27 29/week @ 2024-04-03

415 downloads per month
Used in 3 crates

MIT license

21KB
223 lines

Omango-Util

This is an utilities crate.

  • Hint: support likely and unlikely.
  • Backoff: retry with support reduce CPU cache coherence.
  • CachePadded: aligns CPU cache line for types.
  • SpinLock: concurrent thread safe locking for the fast changes.
  • Defer: support Golang's defer.

Table of Contents

Usage

Add this to your Cargo.toml:

[dependencies]
omango-util = "0.1.5"

Compatibility

The minimum supported Rust version is 1.57.

License

The crate is licensed under the terms of the MIT license. See LICENSE for more information.

Third party software

This product includes copies and modifications of software developed by third parties:

  • src/backoff.rs includes copies and modifications of code from Crossbeam-Utils, licensed under the MIT License and the Apache License, Version 2.0.

  • src/cache_padded.rs includes copies and modifications of code from Crossbeam-Utils, licensed under the MIT License and the Apache License, Version 2.0.

See the source code files for more details.

The third party licenses can be found in here.

No runtime deps