Skip to content

build(core): Deprecate the unused log and uuid features - #1388

Merged
szokeasaurusrex merged 2 commits into
masterfrom
ref/core-remove-unused-log-uuid
Nov 3, 2026
Merged

szokeasaurusrex merged 2 commits into
masterfrom
ref/core-remove-unused-log-uuid

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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 cargo::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 (and sentry-core/log no longer enables log/std) via feature unification. Crates relying on that transitively need to enable those features on uuid/log directly.

This is independent of #1383 (which removes the serde dependency from the same Cargo.toml); expect at most a trivial Cargo.toml/Cargo.lock conflict.

Fixes #1384
Fixes RUST-310
Removal tracked in #1386
Removal tracked in RUST-312

via @szokeasaurusrex.

--

View Junior Session [Sentry]

`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]>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner October 29, 2026 10:03
@szokeasaurusrex
szokeasaurusrex enabled auto-merge (squash) October 29, 2026 10:05
@szokeasaurusrex szokeasaurusrex changed the title chore(core): Deprecate the unused log and uuid features build(core): Deprecate the unused log and uuid features Oct 29, 2026
@linear-code

linear-code Bot commented Oct 29, 2026

Copy link
Copy Markdown

RUST-310

@szokeasaurusrex
szokeasaurusrex merged commit 84a9702 into master Nov 3, 2026
30 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the ref/core-remove-unused-log-uuid branch November 3, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make sentry-core log and uuid features no-ops

2 participants