Registry / utility / drop-bomb

drop-bomb

JSON →
library0.1.5rscratesunverified

A runtime guard for implementing linear types, ensuring that a value is used exactly once.

# Cargo.toml [dependencies] drop_bomb = "0.1.5"
INSTALL
IMPORT
SIG · DROP-BOMB
D
drop-bomb
utilityrustv0.1.5
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.

DropBomb
use drop_bomb::DropBomb;

Creates a DropBomb that panics if dropped without being defused.

use drop_bomb::DropBomb; fn main() { let mut bomb = DropBomb::new("this must be defused"); bomb.defuse(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
drop-bomb — cargo add drop-bomb · libregistry