Repository navigation
chore(deps): lock email-encoding 0.4.3 to match lettre 0.11.24 - #11
Conversation
The lockfile pinned lettre 0.11.24 together with email-encoding 0.4.2, but lettre 0.11.24 requires email-encoding ^0.4.3. The lockfile was therefore inconsistent: any cargo command rewrote it, and --locked builds failed. CI did not catch it because no job passes --locked.
|
Approving. Verified statically (no cargo available in this environment): The inconsistency is real and pre-existing. Base The fix is minimal and correct. The diff touches only two lines in MSRV is fine. One note for later (not blocking): no CI job passes |
Summary
Cargo.lockonmasteris inconsistent. It pinslettre0.11.24 together withemail-encoding0.4.2, butlettre0.11.24 requiresemail-encoding ^0.4.3. This PR locksemail-encoding0.4.3: one entry, two lines.Effect of the inconsistency
--lockedrewritesCargo.lock, so every checkout ends up with a modified lockfile after the first build.cargo metadata --locked(and any other--lockedbuild) fails onmasterwith "cannot update the lock file ... because --locked was passed".--locked; each run resolvesemail-encoding0.4.3 on the fly.The
lettrebump came in with #8 (chore(deps): bump lettre to 0.11.24 for RUSTSEC-2026-0560..0565), which updated thelettreentry but not its dependency.Testing
cargo metadata --lockedpasses with this change and fails without it.cargo test -p rustasea-mail --features smtp --lockedpasses (lettreis only linked behind that feature): 5 suites, 18 tests.cargo auditandcargo deny checkpass.email-encoding0.4.3 declaresrust-version = 1.85, under the workspace MSRV of 1.88.Not run: the full workspace test suite, since the change is one transitive dependency behind an opt-in feature.
Possible follow-up
Passing
--lockedin the CI jobs would turn this kind of drift into a failing check. I left that out because it changes the workflow rather than fixing the lockfile.@vheins, could you review this?