Skip to content

chore: organize dependencies - #271

Merged
augustoccesar merged 1 commit into
nextfrom
augustoccesar/organize-dependencies
Apr 7, 2026
Merged

chore: organize dependencies#271
augustoccesar merged 1 commit into
nextfrom
augustoccesar/organize-dependencies

Conversation

@augustoccesar

Copy link
Copy Markdown
Contributor
  • Move dependencies that are used on multiple crates to be defined on the workspace (use the highest version).
  • Use the exported wasm_bindgen on worker instead of defining dependency.

- Move dependencies that are used on multiple crates to be defined on the workspace (use the highest version).
- Use the exported wasm_bindgen on worker instead of defining dependency.
@augustoccesar augustoccesar self-assigned this Apr 7, 2026
@augustoccesar
augustoccesar marked this pull request as ready for review April 7, 2026 09:44

@Druue Druue left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I didn't realise that we had a local fork -- the cloudflare workspace/crate

It's using it's own versions for reqwest and some other deps too:

Dependency cloudflare/Cargo.toml workspace Cargo.toml
http "1" "1.2.0"
reqwest 0.12.12 (no defaults, json) 0.13.2 (no defaults)
serde "1.0" (with derive) "1.0.217"
serde_json "1.0" "1.0.138"
thiserror "2" "2.0.11"
url "2.2" "2.5.4" (with serde)

Is the goal here to minimise changes to this crate and only modify what's really needed for linkup hence why we're not using workspace versions here?

Comment thread Cargo.toml

members = ["linkup-cli", "linkup", "worker", "local-server", "server-tests", "cloudflare"]

[workspace.dependencies]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ah nice, hell yeah

@augustoccesar

Copy link
Copy Markdown
Contributor Author

@Druue Is the goal here to minimise changes to this crate and only modify what's really needed for linkup hence why we're not using workspace versions here?

Yes. That is a copy-paste of the original code from cloudflare at that time with some small tweaks that we needed to make things work, so I don't want to change its dependencies.
I will take a look again at which parts of the API we are using and they are missing on the crate (if any). They might have added the ones that we need or they might be a small PR away (but IIRC, it wasn't very fast to get things merged there).

@augustoccesar
augustoccesar merged commit 6bc1bb0 into next Apr 7, 2026
6 checks passed
@augustoccesar
augustoccesar deleted the augustoccesar/organize-dependencies branch April 7, 2026 12:13
augustoccesar added a commit that referenced this pull request May 18, 2026
- Move dependencies that are used on multiple crates to be defined on
the workspace (use the highest version).
- Use the exported wasm_bindgen on worker instead of defining
dependency.
augustoccesar added a commit that referenced this pull request May 18, 2026
- Move dependencies that are used on multiple crates to be defined on
the workspace (use the highest version).
- Use the exported wasm_bindgen on worker instead of defining
dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants