omango-util

Crates.ioomango-util
lib.rsomango-util
version0.1.6
sourcesrc
created_at2024-03-20 22:26:35.49838
updated_at2024-08-21 06:56:10.409478
descriptionUtililites
homepagehttps://github.com/tqtrungse/omango-util
repositoryhttps://github.com/tqtrungse/omango-util
max_upload_size
id1181025
size29,613
Trung (tqtrungse)

documentation

https://docs.rs/omango-util

README

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.
  • RwSpinLock: concurrent thread safe read-write 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.6"

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.

Commit count: 27

cargo fmt