Repository navigation
build(core): Remove unused serde dependency - #1383
Merged
Merged
Conversation
`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]>
alexander-alderman-webb
approved these changes
Nov 3, 2026
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]>
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-coredeclared a direct, non-optionalserdedependency that nothing in the crate uses;serde_jsonremains.serdeis still pulled in transitively throughsentry-typeswith thederivefeature, 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, andcargo test -p sentry-core --all-features --all-targets --lockedplus--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]