Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 13, 2025

Bumps slog from 2.7.0 to 2.8.2.

Release notes

Sourced from slog's releases.

Fix private field breaking # operator in macros

Fixes issue #364

Release Notes

Fixed

  • Fix use of # operator in macros due to private field (issue #364)
  • ci: Check the tests pass with -Zminimal-versions

Move back to erased_serde v0.3

The upgrade from erased_serde v0.3 to v0.4 in v2.8.0 was a breaking change, as it affected the public API. In the future, we may find a way to upgrade in a backwards-compatible manner. This should not affect normal users of the API but could break drains supporting nested-values.

I (@​Techcable) apologize for this breakage and have yanked the 2.8.0 release due to this issue. I will try to setup cargo-semver-checks in the CI to avoid this in the future.

Fixed

  • Restore compatibility with erased-serde version 0.3.
    • Compatibility with erased-serde version 0.4 may be provided again in a future version, but will be done so in a backwards compatible way.
    • Thanks to @​demurgos for recognizing and fixing this in PR #359
  • Ensure compatibility with -Zminimal-versions flag by specifying minimal dependency versions (fixes #357)

Enable nested-values feature by default

This is the biggest slog release since v2.0! It contains many smaller fixes and improvements to slog that have been accumulated across 5 years and 127 commits.

The nested-values feature was already present in slog, and allows logging serde::Serialize types in addition to primitives. Previously, the nested-values feature had to be enabled not just in slog but also in each drain crate (slog_json, slog_term, slog_async, etc). Enabling this feature by default makes the crate easier to use and avoids several papercts. It should have no runtime overhead if not used and low compile-time overhead thanks to the new serde_core crate.

Another major feature is Logger::flush, which explicitly flushes buffered log messages. The next major release of slog_json, slog_async, etc., will also include support for this feature, in addition to enabling nested-values by default.

Changelog

The following has been copied from CHANGELOG.md

Highlights

  • Enables the nested-values feature by default. The next major release of slog_json, slog_term, etc should also enable this feature by default.
  • Added Logger::flush and Drain::flush methods.
  • Improved support for logging errors
    • Have # log specifier transparently support & references to error
    • Implement slog::Value for Box<dyn std::error::Error> and anyhow::Error
  • Define a prelude module for common imports
  • Upgraded to Rust 2018 and require Rust 1.61
    • Deprecate the old slog_log! macros in favor of slog::log!
  • Many internal improvements & bug fixes

Changed

... (truncated)

Changelog

Sourced from slog's changelog.

2.8.2 - 2025-10-11

Fixed

  • Fix use of # operator in macros due to private field (issue #364)
  • ci: Check the tests pass with -Zminimal-versions

2.8.1 - 2025-10-05

This fixes an accidental breaking change in the v2.8.0 release, where the public API was changed from erased_serde v0.4 to erased_serde v0.3. This should not affect normal users of the API but could break drains supporting nested-values.

I (@​Techcable) apologize for this breakage and have yanked the 2.8.0 release due to this issue. I will try to setup cargo-semver-checks in the CI to avoid this in the future.

Fixed

  • Restore compatibility with erased-serde version 0.3.
    • Compatibility with erased-serde version 0.4 may be provided again in a future version, but will be done so in a backwards compatible way.
    • Thanks to @​demurgos for recognizing and fixing this in PR #359
  • Ensure compatibility with -Zminimal-versions flag by specifying minimal dependency versions (fixes #357)

[2.8.0] - 2025-10-05

This is the biggest slog release since 2.0. It fully preserves compatibility with prior releases.

Highlights

  • Enables the nested-values feature by default. The next major release of slog_json, slog_term, etc should also enable this feature by default.
  • Added Logger::flush and Drain::flush methods.
  • Improved support for logging errors
    • Have # log specifier transparently support & references to error
    • Implement slog::Value for Box<dyn std::error::Error> and anyhow::Error
  • Define a prelude module for common imports
  • Upgraded to Rust 2018 and require Rust 1.61
    • Deprecate the old slog_log! macros in favor of slog::log!
  • Many internal improvements & bug fixes

Changed

  • Enables the nested-values feature by default.
  • Updated to Rust 2018
  • Bump MSRV to 1.61
    • This is already required for erased-serde, syn, serde_core, and many other important crates in the rust ecosystem.
  • Update erased-serde from v0.3 to v0.4
  • Depend on [serde_core] rather than serde to reduce compile times.

Added

  • Added a Logger::flush and Drain::flush methods
    • Since this is a new method, not all drains implement it.

... (truncated)

Commits
  • e694b83 Bump version to 2.8.2
  • 693fc37 Fix issue #364 - Broken # operator in macros
  • 66f082b ci: Add test job for -Zminimal-versions
  • a26eb6e Bump version to v2.8.1
  • 2107d2e Fix compilation issues with -Zminimum-versions
  • 9814a8b regression fix: restore compatibility with erased-serde version 0.3
  • ec46dcc Bump version to v2.8.0
  • a447574 Use serde_core instead of serde
  • 60add84 ci: Run rustdoc in CI, forbidding warnings
  • 640c150 Fix outstanding rustdoc warnings
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Oct 13, 2025
Bumps [slog](https://github.com/slog-rs/slog) from 2.7.0 to 2.8.2.
- [Release notes](https://github.com/slog-rs/slog/releases)
- [Changelog](https://github.com/slog-rs/slog/blob/master/CHANGELOG.md)
- [Commits](slog-rs/slog@v2.7.0...v2.8.2)

---
updated-dependencies:
- dependency-name: slog
  dependency-version: 2.8.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/slog-2.8.2 branch from f58d4ef to f4ee866 Compare October 13, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants