Skip to content

fix(generate): mark url as a Windows-only dependency#4411

Merged
amaanq merged 1 commit intotree-sitter:masterfrom
amaanq:url-generate
Apr 28, 2025
Merged

fix(generate): mark url as a Windows-only dependency#4411
amaanq merged 1 commit intotree-sitter:masterfrom
amaanq:url-generate

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Apr 28, 2025

Problem

Using the url crate brings in unnecessary dependencies in the generate crate, especially since it's only needed for Windows consumers

Solution

Gate the url dependency in the generate crate to only be used when the build target is windows, and turn off default features.

@clason clason added cargo Pull requests that update Cargo dependencies ci:backport release-0.25 Backport label labels Apr 28, 2025
@amaanq amaanq merged commit 3056dc5 into tree-sitter:master Apr 28, 2025
20 checks passed
@tree-sitter-ci-bot
Copy link

Successfully created backport PR for release-0.25:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cargo Pull requests that update Cargo dependencies ci:backport release-0.25 Backport label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tree-sitter-generate unconditionally depends on url

3 participants