This is the Linux app named derive(Error) whose latest release can be downloaded as 2.0.17sourcecode.tar.gz. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named derive(Error) with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS:
derive(Error)
DESCRIPTION:
This is a Rust crate that provides a convenient derive macro (#[derive(Error)]) for implementing std::error::Error on your custom error types (structs or enums). The goal is to enable library authors to build expressive, typed error types, with readable Display implementations (via #[error("...")] annotations) as well as From conversions (#[from]), source tracking (#[source]), and optionally backtraces. It is designed so that switching from handwritten error implementation to using this error is not a breaking change: you retain the same API. The README shows examples: an enum with variants annotated by #[error("…")] and #[from] fields to derive the appropriate trait impls. The crate expects rustc ≥ 1.68+. The README also outlines how you choose; use thiserror if you care about designing your own error-types (e.g., for libraries) vs anyhow for applications.
Features
- #[derive(Error)] macro to implement std::error::Error for your types
- #[error("…")] annotation for Display message formatting with interpolation
- #[from] attribute for automatic From conversions from underlying error types
- #[source] attribute (or implied) for error chaining
- Backtrace field support (via #[backtrace], nightly-only)
- Library-friendly design: no impact on public API if switching implementation
Programming Language
Rust
Categories
This is an application that can also be fetched from https://sourceforge.net/projects/derive-error.mirror/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.