Skip to content

build(core): Remove unused serde dependency - #1383

Merged
szokeasaurusrex merged 1 commit into
masterfrom
ref/core-remove-unused-serde
Nov 3, 2026
Merged

szokeasaurusrex merged 1 commit into
masterfrom
ref/core-remove-unused-serde

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

sentry-core declared a direct, non-optional serde dependency that nothing in the crate uses; serde_json remains. serde is still pulled in transitively through sentry-types with the derive feature, so the resolved feature set for downstream users is unchanged. No changelog entry, in line with other internal dependency changes.

Ran locally: cargo fmt --all -- --check, cargo clippy -p sentry-core --all-features --tests --examples --locked -- -D clippy::all, cargo check -p sentry-core --all-targets (default, --all-features, --no-default-features), cargo check --workspace --all-features --all-targets --locked, and cargo test -p sentry-core --all-features --all-targets --locked plus --doc, all passing. I didn't run the full workspace test suite locally; CI covers it.

Fixes #1380
Fixes RUST-308

via @szokeasaurusrex.

--

View Junior Session [Sentry]

`sentry-core` declared a direct, non-optional `serde` dependency that nothing in the crate uses; `serde_json` remains. `serde` is still pulled in transitively through `sentry-types` with the `derive` feature, so the resolved feature set for downstream users is unchanged.

Fixes #1380

Co-Authored-By: Dr. Daniel Szokenstein <[email protected]>
@linear-code

linear-code Bot commented Oct 29, 2026

Copy link
Copy Markdown

RUST-308

@szokeasaurusrex
szokeasaurusrex merged commit 1f5e6a4 into master Nov 3, 2026
32 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the ref/core-remove-unused-serde branch November 3, 2026 12:10
szokeasaurusrex added a commit that referenced this pull request Nov 3, 2026
`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::warning`s 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
Removal tracked in #1386

<!-- junior-request-attribution:start -->
via @szokeasaurusrex.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Af3d60ba73569b039680cf0068a62a89a -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/agent%3Af3d60ba73569b039680cf0068a62a89a)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Af3d60ba73569b039680cf0068a62a89a/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Dr. Daniel Szokenstein <[email protected]>
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.

Remove unused serde dependency from sentry-core

2 participants