Skip to content

chore(deps): remove chumsky#538

Open
m4tx wants to merge 5 commits intomasterfrom
remove-chumsky
Open

chore(deps): remove chumsky#538
m4tx wants to merge 5 commits intomasterfrom
remove-chumsky

Conversation

@m4tx
Copy link
Copy Markdown
Member

@m4tx m4tx commented Mar 30, 2026

This removes the chumsky dependency, which was really just a lettre dependency, pinned to a specific version to avoid minimal version dependency issues.

Also, this removes the workaround for rust-lang/rust#141626 which should be no longer needed now.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

@m4tx m4tx requested review from ElijahAhianyo, Copilot and seqre March 30, 2026 19:05
@github-actions github-actions bot added A-deps Area: Dependencies C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate) labels Mar 30, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

🐰 Bencher Report

Branchremove-chumsky
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
5,026.20 µs
(-16.46%)Baseline: 6,016.63 µs
7,288.03 µs
(68.97%)
json_api/json_api📈 view plot
🚷 view threshold
893.78 µs
(-14.44%)Baseline: 1,044.65 µs
1,230.17 µs
(72.65%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
858.05 µs
(-10.77%)Baseline: 961.59 µs
1,124.38 µs
(76.31%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
819.25 µs
(-11.30%)Baseline: 923.62 µs
1,087.26 µs
(75.35%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
15,205.00 µs
(-13.89%)Baseline: 17,657.14 µs
21,130.26 µs
(71.96%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the workspace-level chumsky dependency and associated feature wiring, and drops the previously-added Windows linker/rustflags workaround in Cargo configs.

Changes:

  • Remove chumsky from workspace dependencies and from cot’s email feature/dependency list.
  • Delete Windows-specific .cargo/config.toml workaround (both in repo root and the project template).
  • Update the project generator to no longer copy the template .cargo/config.toml.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
cot/Cargo.toml Drops optional chumsky dep and removes it from the email feature.
Cargo.toml Removes chumsky from [workspace.dependencies].
Cargo.lock Updates lockfile to reflect removal of chumsky from the resolved graph.
.cargo/config.toml Removes Windows-specific linker/rustflags workaround.
cot-cli/src/project_template/.cargo/config.toml Deletes the template’s Windows-specific cargo config workaround.
cot-cli/src/new_project.rs Stops copying the template .cargo/config.toml into newly generated projects.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +16 to 19
const PROJECT_FILES: [(&str, &str); 10] = [
project_file!("Cargo.toml.template"),
project_file!("Cargo.lock.template"),
project_file!("bacon.toml"),
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

new_project copies Cargo.lock.template, but the current template lock file still contains chumsky (and is pinned to cot 0.5.0). This means freshly generated projects will still carry the dependency/version pins this PR is trying to remove. Please regenerate cot-cli/src/project_template/Cargo.lock.template from the updated template project (or stop shipping a lock template if it’s not meant to be kept in sync).

Copilot uses AI. Check for mistakes.
m4tx added 2 commits March 30, 2026 21:25
This removes the chumsky dependency, which was really just a `lettre`
dependency, pinned to a specific version to avoid minimal version
dependency issues.

Also, this removes the workaround for rust-lang/rust#141626 which should
be no longer needed now.
@m4tx m4tx enabled auto-merge (squash) March 30, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-deps Area: Dependencies C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants