Repository navigation
build(core): Deprecate the unused log and uuid features - #1388
Merged
Merged
Conversation
`sentry-core` declared `log` and `uuid` as optional dependencies, but never used them. Because neither was referenced with `dep:` in `[features]`, Cargo exposed implicit `log` and `uuid` features, so removing the dependencies outright would be a breaking change for anyone enabling those features. This removes both dependencies and keeps `log` and `uuid` as empty, deprecated features so existing feature lists keep compiling. Cargo has no way to surface a deprecation warning to downstream users (build-script warnings and `#[deprecated]` lints are hidden for non-path dependencies), so the deprecation is documented in `Cargo.toml` and the changelog only. One side effect: enabling `sentry-core/uuid` no longer enables `uuid`'s `v4` and `serde` features (nor `sentry-core/log` the `std` feature of `log`) via feature unification. Crates relying on that transitively should enable those features on `uuid`/`log` directly. Fixes #1384 References #1386 Co-Authored-By: Dr. Daniel Szokenstein <[email protected]>
szokeasaurusrex
enabled auto-merge (squash)
October 29, 2026 10:05
log and uuid featureslog and uuid features
alexander-alderman-webb
approved these changes
Nov 3, 2026
…sed-log-uuid # Conflicts: # CHANGELOG.md
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sentry-coredeclaredloganduuidas optional dependencies, but never used them. Because neither was referenced withdep:in[features], Cargo exposed implicitloganduuidfeatures, so removing the dependencies outright would be a breaking change for anyone enabling those features.This removes both dependencies and keeps
loganduuidas empty, deprecated features so existing feature lists keep compiling. Cargo has no way to surface a deprecation warning to downstream users (build-scriptcargo::warnings and#[deprecated]lints are hidden for non-path dependencies), so the deprecation is documented inCargo.tomland the changelog only.One side effect: enabling
sentry-core/uuidno longer enablesuuid'sv4andserdefeatures (andsentry-core/logno longer enableslog/std) via feature unification. Crates relying on that transitively need to enable those features onuuid/logdirectly.This is independent of #1383 (which removes the
serdedependency from the sameCargo.toml); expect at most a trivialCargo.toml/Cargo.lockconflict.Fixes #1384
Fixes RUST-310
Removal tracked in #1386
Removal tracked in RUST-312
via @szokeasaurusrex.
--
View Junior Session [Sentry]