Skip to content

Commit

Permalink
feat: Add record stub
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Sep 9, 2024
1 parent 849f321 commit d88d1bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ coerce_macro = ["error_set_impl/coerce_macro"]
tracing = ["dep:tracing"]
# Enables support for the log crate. Adds methods to `Result` that are applied on `Err` - e.g. `result.warn(...)`.
log = ["dep:log"]
# Enables support for the log/tracing api, without pulling in either crate. Allowing a downstream to choose the appropriate crate.
record_stub = []

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc = include_str!("../README.md")]

#[cfg(any(feature = "tracing", feature = "log"))]
#[cfg(any(feature = "tracing", feature = "log", feature = "record_stub"))]
mod record;
#[cfg(any(feature = "tracing", feature = "log"))]
#[cfg(any(feature = "tracing", feature = "log", feature = "record_stub"))]
pub use record::*;
#[cfg(all(feature = "tracing", feature = "log"))]
compile_error!("Features 'tracing' and 'log' cannot be enabled at the same time.");
Expand Down
2 changes: 2 additions & 0 deletions src/record.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unused_variables)]

use std::fmt::Debug;
use std::fmt::Display;

Expand Down

0 comments on commit d88d1bd

Please sign in to comment.