Registry / utility / main-error

main-error

JSON →
library0.1.2rscratesunverified

Print errors with Display instead of Debug when using ? in main().

# Cargo.toml [dependencies] main_error = "0.1.2"
INSTALL
IMPORT
SIG · MAIN-ERROR
M
main-error
utilityrustv0.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.

MainError
use main_error::MainError;

Use MainError as the error type in main to get Display formatting.

use main_error::MainError; fn main() -> Result<(), MainError> { // Your code that may return an error Ok(()) }
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
2 hits · last 30 days
node
2
Resources
main-error — cargo add main-error · libregistry