Skip to content
iex-rsPublic

About

Lightweight exceptions for Rust

Resources

Stars

103 stars

Watchers

1 watching

Forks

Repository files navigation

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.

About

Lightweight exceptions for Rust

Resources

Stars

103 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages