Skip to content

Mention in docs that many #[sqlx::test]s can slow down rebuild time#4320

Open
Kobzol wants to merge 1 commit into
transact-rs:mainfrom
Kobzol:sqlx-docs
Open

Mention in docs that many #[sqlx::test]s can slow down rebuild time#4320
Kobzol wants to merge 1 commit into
transact-rs:mainfrom
Kobzol:sqlx-docs

Conversation

@Kobzol

@Kobzol Kobzol commented Jun 21, 2026

Copy link
Copy Markdown

This PR adds a mention to the docs of #[sqlx::test] to warn users that having many such tests that embed migrations in the generated source code can lead to severe source code bloat and long compilation times. I described this in #4318.

Does your PR solve an issue?

It provides a hint to users that might run into this issue: #4318

Is this a breaking change?

No

@abonander

Copy link
Copy Markdown
Collaborator

It would be fine to implement the solution in #4318 so we can actually offer a fix to the user.

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.

2 participants