Skip to content

Commit 2107d2e

Browse files
committed
Fix compilation issues with -Zminimum-versions
This does not affect the code and only means we declare more specific versions in Cargo.toml. Fixes #357
1 parent 9814a8b commit 2107d2e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
- **[Fix]** Restore compatibility with `erased-serde` version `0.3`.
1010
- Compatibility with `erased-serde` version `0.4` may be provided again in a
1111
future version.
12+
* Ensure compatibility with `-Zminimal-versions` flag by specifying minimal dependency versions (fixes #357)
13+
- Not (yet) tested in CI
1214

1315
## [2.8.0] - 2025-10-05
1416
This is the biggest slog release since 2.0. It fully preserves compatibility with prior releases.

Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,18 @@ default-features = false
118118
features = ["alloc"] # erased-serde always requires alloc, and so does slog
119119

120120
[build-dependencies]
121-
rustversion = "1"
121+
# rustversion v1.0.6 added the rustversion::cfg! macro
122+
rustversion = "1.0.6"
122123

123124
[dev-dependencies]
124125
# NOTE: This is just a macro (not a runtime dependency)
125126
#
126127
# It is used to conditionally enable use of newer rust language
127128
# features depending on the compiler features.
128-
rustversion = "1"
129-
serde = "1"
130-
serde_derive = "1"
129+
rustversion = "1.0.6"
130+
# first version to support serde_core
131+
serde = "1.0.220"
132+
serde_derive = "1.0.220"
131133

132134
[[example]]
133135
name = "singlethread"

0 commit comments

Comments
 (0)