Rename disable->std-log, bump version

This commit is contained in:
Nicolas Stalder
2022-08-22 13:18:58 +02:00
committed by Nicolas Stalder
parent da3e708f30
commit bd5bb6cc27
3 changed files with 8 additions and 5 deletions
+3
View File
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.1.6] - 2022-08-22
- `std-log` feature to use normal logging for testing etc. @robin-nitrokey
## [0.1.5]- 2022-06-25
- fix incorrect MIT license copyright info
+3 -3
View File
@@ -1,6 +1,6 @@
[package]
name = "delog"
version = "0.1.5"
version = "0.1.6"
description = "Deferred logging, an implementation and extension of Rust's standard logging facade."
authors = ["Trussed Developers"]
license = "Apache-2.0 OR MIT"
@@ -25,8 +25,8 @@ insta = "1.7"
example = ["std"]
# sole reason for this is to enable `print!` in the example's `Std{err,out}Flusher`
std = []
# disable deferred logging and use log::log instead
disable = []
# replace deferred logging with log::log
std-log = []
max_level_off = ["log/max_level_off"]
max_level_error = ["log/max_level_error"]
+2 -2
View File
@@ -1,7 +1,7 @@
/// Fallible (ungated) version of `log!`.
#[macro_export]
#[doc(hidden)]
#[cfg(not(feature = "disable"))]
#[cfg(not(feature = "std-log"))]
macro_rules! try_log {
(target: $target:expr, $lvl:expr, $message:expr) => ({
@@ -37,7 +37,7 @@ macro_rules! try_log {
#[macro_export]
#[doc(hidden)]
#[cfg(feature = "disable")]
#[cfg(feature = "std-log")]
macro_rules! try_log {
(target: $target:expr, $lvl:expr, $message:expr) => ({