Skip to content

v0.38.0 adding plenty of new dependencies #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Turbo87 opened this issue May 12, 2025 · 6 comments · Fixed by #806
Closed

v0.38.0 adding plenty of new dependencies #804

Turbo87 opened this issue May 12, 2025 · 6 comments · Fixed by #806
Labels
Bug Something isn't working Rust SDK

Comments

@Turbo87
Copy link
Contributor

Turbo87 commented May 12, 2025

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

v0.38.0

Steps to reproduce

see https://github.com/rust-lang/crates.io/pull/11143/files

Expected result

No significant increase in dependencies

Actual result

The sentry crate suddenly pulls in actix-web with its 30 dependencies and plenty of other things that we are not actually using.

Is there a reason why the core sentry crate now needs all of these seemingly non-optional dependencies? If this comes from the new OpenTelemetry integration then maybe it would be better to put that behind a feature flag or extract it to a dedicated crate?

@lcian
Copy link
Member

lcian commented May 12, 2025

Thanks for calling that out.
The reason it's downloading those dependencies is that I forgot a question mark here

release-health = ["sentry-core/release-health", "sentry-actix?/release-health"]

We'll release a fix ASAP.

@Turbo87
Copy link
Contributor Author

Turbo87 commented May 14, 2025

rust-lang/crates.io#11143 was updated to the latest release but it looks like it still contains the actix dependencies for some reason 🤔

@lcian
Copy link
Member

lcian commented May 14, 2025

Yeah @Turbo87 I've also noticed that, it will be there in Cargo.lock but not actually built, e.g. if you use cargo tree it would not be there.
I think it's just a side effect of the /? syntax so this is the best we can do, see #805 (comment)

@Turbo87
Copy link
Contributor Author

Turbo87 commented May 14, 2025

huh, interesting... I thought that was only the case for target-specific dependencies, not weak dependencies, but looks like you're right. sorry for the noise :)

@lcian
Copy link
Member

lcian commented May 14, 2025

All good and thank you for reporting, I was also surprised that it works like this.

@lcian
Copy link
Member

lcian commented May 14, 2025

Linking the relevant cargo issue here for the record rust-lang/cargo#10801
Thanks @Swatinem for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Rust SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants