Skip to content

Conversation

@Firestar99
Copy link
Collaborator

@Firestar99 Firestar99 commented Jun 18, 2025

Requires #2735

Every crate currently defines their own features, which means if you build or check an intermediary crate, and that one doesn't need eg. web_sys/TextMetrics (from graphite-wasm), web_sys will be recompiled. That including all it's dependents, like wgpu, gcore and pretty much every single crate in this repo. This makes it super annoying to build or check different crates in the tree. So I unified all features in the workspace Cargo.toml.

Sure, usually you only use graphene-cli or graphite-wasm as the main targets, but I've noticed it quite a bit. Also simplifies all active features of a crate to a single location, instead of all over the codebase. Which helps me later when I don't have to think about features when refactoring.

@Firestar99 Firestar99 changed the base branch from master to gcore_bulk_cleanup June 18, 2025 16:31
@Firestar99 Firestar99 marked this pull request as ready for review June 18, 2025 16:39
@Firestar99 Firestar99 changed the title All dependencies are workspace dependencies Make all dependencies are workspace dependencies Jun 18, 2025
@Firestar99 Firestar99 changed the title Make all dependencies are workspace dependencies Make all dependencies workspace dependencies Jun 18, 2025
@Firestar99 Firestar99 changed the title Make all dependencies workspace dependencies Dependency feature unification with workspace dependencies Jun 18, 2025
@Keavon Keavon force-pushed the workspace-dependencies branch from da125b8 to 0c0551f Compare June 20, 2025 06:57
@Keavon Keavon force-pushed the gcore_bulk_cleanup branch from c45bb3d to 1f5554f Compare June 20, 2025 06:57
Base automatically changed from gcore_bulk_cleanup to master June 21, 2025 23:08
@Keavon Keavon force-pushed the workspace-dependencies branch from 0c0551f to cb8a6c3 Compare June 21, 2025 23:11
@Keavon Keavon changed the title Dependency feature unification with workspace dependencies Unify feature dependencies with workspace dependencies Jun 21, 2025
@Keavon Keavon merged commit ca5ca86 into master Jun 21, 2025
4 checks passed
@Keavon Keavon deleted the workspace-dependencies branch June 21, 2025 23:26
urisinger pushed a commit to urisinger/Graphite that referenced this pull request Jul 15, 2025
…r#2736)

* graph-craft: fix direct wasm build

* graph-craft: fix no serde feature failing to compile

* graph-craft: make wgpu-executor properly optional

* workspace: unify `image` formats in workspace

* workspace: turn most dependencies into workspace deps, no actual changes

* workspace: unify dependency features in workspace dep
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.

4 participants