Registry / testing / testdrop

testdrop

JSON →
library0.1.2rscratesunverified

A utility to help test drop implementations by tracking when values are dropped.

# Cargo.toml [dependencies] testdrop = "0.1.2"
INSTALL
IMPORT
SIG · TESTDROP
T
testdrop
testingrustv0.1.2
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.

TestDrop
use testdrop::TestDrop;

Tracks whether a value has been dropped.

use testdrop::TestDrop; fn main() { let mut td = TestDrop::new(); let _guard = td.claim(); drop(_guard); assert!(td.is_dropped()); println!("Drop confirmed"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
testdrop — cargo add testdrop · libregistry