Skip to content

Commit

Permalink
Give warnings when using old slog_ prefixed macros
Browse files Browse the repository at this point in the history
These are made redundant by the new 2018 paths.

This warning can be disabled with the feature flag: suppress-macro2018-warnings
  • Loading branch information
Techcable committed Jan 5, 2024
1 parent 6fa18aa commit 6fae64b
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 198 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

* Give warnings when using old `slog_` prefixed macros (ex. `slog_log!)
* These are redundant with Rust 2018 macro paths `slog::log!`
* These warnings can be explicitly disabled with the `suppress-macro2018-warnings` feature

### 2.8.0-beta.2 - 2024-01-05

* Add `ErrorRef` wrapper to enable logging error references (PR #327)
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ release_max_level_info = []
release_max_level_debug = []
release_max_level_trace = []

# Suppress warnings relating to uses of the macros in Rust 2018
suppress-macro2018-warnings = []

[dependencies]
erased-serde = { version = "0.3", optional = true }
serde = { version = "1", optional = true }
Expand Down
Loading

0 comments on commit 6fae64b

Please sign in to comment.