lithium

Crates.iolithium
lib.rslithium
version1.0.4
created_at2024-10-30 21:44:02.783666+00
updated_at2025-06-04 01:23:56.790317+00
descriptionLightweight exceptions
homepage
repositoryhttps://github.com/iex-rs/lithium
max_upload_size
id1429265
size148,905
Alisa Sireneva (purplesyringa)

documentation

README

Lithium

License Version docs.rs Tests

Lightweight exceptions.

Lithium provides a custom exception mechanism as an alternative to Rust panics. Compared to Rust panics, this mechanism is allocation-free, avoids indirections and RTTI, and is hence faster, if less applicable.

On nightly, Lithium is more than 2x faster than Rust panics on common Result-like usecases. See the benchmark.

See documentation for usage and installation instructions.

Commit count: 174

cargo fmt