Registry / utility / static-cell

static-cell

JSON →
library2.1.1rscratesunverified

A statically allocated cell that is initialized at runtime, useful for embedded and no_std environments.

# Cargo.toml [dependencies] static_cell = "2.1.1"
INSTALL
IMPORT
SIG · STATIC-CELL
S
static-cell
utilityrustv2.1.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.

StaticCell
use static_cell::StaticCell;

Initializes a static cell with a value and prints it.

use static_cell::StaticCell; static MY_CELL: StaticCell<u32> = StaticCell::new(); fn main() { let value = MY_CELL.init(42); println!("Initialized value: {}", value); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
static-cell — cargo add static-cell · libregistry