Skip to content

Commit

Permalink
Merge pull request #427 from shepmaster/macro-doc-aliases
Browse files Browse the repository at this point in the history
Add aliases for `[snafu(foo)]` to the `Snafu` macro
  • Loading branch information
shepmaster committed Dec 5, 2023
2 parents 0bab0e4 + a85a03c commit a239d70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,19 @@ pub use report::CleanedErrorText;
pub use report::{Report, __InternalExtractErrorType};

#[doc = include_str!("Snafu.md")]
#[doc(alias(
"backtrace",
"context",
"crate_root",
"display",
"implicit",
"module",
"provide",
"source",
"transparent",
"visibility",
"whatever",
))]
pub use snafu_derive::Snafu;

#[doc = include_str!("report.md")]
Expand Down

0 comments on commit a239d70

Please sign in to comment.