Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/synapse-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ lazy_static = "1.5.0"

[dev-dependencies]
tokio = { workspace = true }
synapse-infra = { path = "../synapse-infra" }
synapse-infra = { path = "../synapse-infra", default-features = false }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For improved maintainability, it would be beneficial to add a comment explaining why default-features is disabled for this dev-dependency. This context is valuable for future developers who might not be aware of the circular dependency and the potential build issues it prevents.

Suggested change
synapse-infra = { path = "../synapse-infra", default-features = false }
# Disable default features to break the circular dev-dependency on `synapse-infra`
# and prevent pulling in heavy optional features (e.g., 'vision') during tests.
synapse-infra = { path = "../synapse-infra", default-features = false }

Loading