Registry / utility / string-error

string-error

JSON →
library0.1.0rscratesunverified

A minimal Rust library to create errors out of strings.

# Cargo.toml [dependencies] string-error = "0.1.0"
INSTALL
IMPORT
SIG · STRING-ERROR
S
string-error
utilityrustv0.1.0
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.

StringError
use string_error::StringError;

Create and return a simple string-based error.

use string_error::StringError; fn main() -> Result<(), StringError> { Err(StringError::from("Something went wrong")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
string-error — cargo add string-error · libregistry