atoman-0.1.6 has been yanked.
Atoman (Atomic State)
Atoman is a Rust library for safe concurrent access to static asynchronous data across your application. It provides atomic flags and state wrappers with async setters, getters, and locking mechanisms, bridging synchronous static variables with async runtimes like Tokio.
Features:
- Global configuration management with file-based persistence (
TOML/JSON). - Structured logging with async-safe output to files.
- Feature flags and shared state in async applications.
- Data is stored in
Arcfor zero-copy access and thread safety.
Examples:
Atomic Flag:
use *;
static IS_ACTIVE: Flag = new;
async
Atomic State:
use *;
static CONFIG: = new;
Config:
use *;
async
Logger:
use *;
async
Feedback:
This library distributed under the MIT license.
You can contact me via GitHub or send a message to my telegram @fuderis. This library is actively evolving, and your suggestions and feedback are always welcome!