Skip to content
Myr

Drop the dependency on a macros crate

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 727f36f · Browse files · 1 file+0 added−19 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−19 removed

  • other:+0 added−19 removed

1 file+0 added−19 removed

modified:src/lib.rs-19 removed
2 unmodified lines
3mod as_error;4mod exception;5mod context;67#[doc(inline)]8/// Annotations a function that "throws" a Result.9///10/// Inside functions tagged with `throws`, you can use `?` and the `throw!` macro to return errors,11/// but you don't need to wrap the successful return values in `Ok`.12///13/// `throws` can optionally take a type as an argument, which will be the error type returned by14/// this function. By default, the function will throw `Exception`.15pub use fehler_macros::throws;1617#[doc(inline)]18/// Derive for the Error trait.19///20/// If the type contains a `Backtrace`, it will generate the `backtrace` method to find it.21///22/// If this wraps a different, underlying error, you can tag that field with `#[error::source]`,23/// which will generate the `cause` and `source` methods correctly.24pub use fehler_macros::Error;257pub use crate::as_error::AsError;8pub use crate::exception::{Exception, Errors};9pub use crate::context::Context;10
17 unmodified lines