Crates.io | lithium |
lib.rs | lithium |
version | |
source | src |
created_at | 2024-10-30 21:44:02.783666 |
updated_at | 2024-11-06 11:02:25.313213 |
description | Lightweight exceptions |
homepage | |
repository | https://github.com/iex-rs/lithium |
max_upload_size | |
id | 1429265 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.