Skip to content

Commit

Permalink
doc: Update feature docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Jul 20, 2024
1 parent d56fdc5 commit 70a2ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(feature = "coerce_macro", doc = "Generates a `coerce!` macro for each error set to handle coercing between intersections.")]
#![cfg_attr(feature = "tracing", doc = "Enables tracing methods on `Result` that are applied on `Err` - `result.log_*(...)`.")]
#![cfg_attr(feature = "tracing", doc = "Enables tracing crate methods on `Result` that are applied on `Err` - e.g. `result.warn(...)`.")]
#![cfg_attr(feature = "log", doc = "Enables logging crate methods on `Result` that are applied on `Err` - e.g. `result.warn(...)`.")]
#[cfg(all(feature = "tracing", feature = "log"))]
compile_error!("Features 'tracing' and 'log' cannot be enabled at the same time.");

Expand Down

0 comments on commit 70a2ba7

Please sign in to comment.