Registry / utility / volatile

volatile

JSON →
library0.6.1rscratesunverified

Volatile wrapper types for raw pointers, preventing compiler optimizations on memory accesses.

# Cargo.toml [dependencies] volatile = "0.6.1"
INSTALL
IMPORT
SIG · VOLATILE
V
volatile
utilityrustv0.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Volatile
use volatile::Volatile;

Creates a volatile wrapper and performs a read/write operation.

use volatile::Volatile; fn main() { let mut v = Volatile::new(42u32); v.write(100); println!("Value: {:?}", v.read()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
volatile — cargo add volatile · libregistry