Registry / utility / dont-disappear

dont-disappear

JSON →
library3.0.1rscratesunverified

Tiny crate that prevents the console window from closing when the program finishes.

# Cargo.toml [dependencies] dont_disappear = "3.0.1"
INSTALL
IMPORT
SIG · DONT-DISAPPEAR
D
dont-disappear
utilityrustv3.0.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.

DontDisappear
use dont_disappear::DontDisappear;

Keeps the console window open after program completion.

use dont_disappear::DontDisappear; fn main() { let _guard = DontDisappear::new(); println!("Press any key to exit..."); // Console window stays open until key press }
Debug
Known issues
gotchaOnly works on Windows; on other platforms it does nothing.
fix
Use conditional compilation or platform-specific alternatives.
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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