Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Dependency feature unification with workspace dependencies

Open Firestar99 opened this issue 6 months ago • 0 comments

Requires https://github.com/GraphiteEditor/Graphite/pull/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 avatar Jun 18 '25 16:06 Firestar99