Skip to content

Use cargo workspace to remove duplicated version, license, and author fields - #4226

Merged
timon-schelling merged 1 commit into
masterfrom
use-more-cargo-workspace
Sep 15, 2026
Merged

timon-schelling merged 1 commit into
masterfrom
use-more-cargo-workspace

Conversation

@timon-schelling

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request migrates multiple crates within the workspace to inherit common package metadata from the workspace configuration. However, the reviewer noted that the rust-version constraint was inadvertently removed from several Cargo.toml files during this migration. It is recommended to add rust-version.workspace = true to these files to ensure all packages consistently adhere to the workspace's Rust version constraint.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread desktop/Cargo.toml
license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

Comment thread desktop/bundle/Cargo.toml
license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

license = "MIT OR Apache-2.0"
repository = ""
edition = "2024"
rust-version = "1.87"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.87"
rust-version.workspace = true

Comment thread editor/Cargo.toml
name = "graphite-editor"
publish = false
version = "0.0.0"
rust-version = "1.88"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.88"
rust-version.workspace = true

name = "graphite-wasm-wrapper"
publish = false
version = "0.0.0"
rust-version = "1.88"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.88"
rust-version.workspace = true

name = "node-macro"
publish = false
version = "0.0.0"
rust-version = "1.88"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.88"
rust-version.workspace = true

Comment thread proc-macros/Cargo.toml
name = "graphite-proc-macros"
publish = false
version = "0.0.0"
rust-version = "1.88"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The rust-version constraint was removed during the workspace migration. Please add rust-version.workspace = true to ensure the package adheres to the workspace's Rust version constraint.

Suggested change
rust-version = "1.88"
rust-version.workspace = true

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

3 issues found across 49 files

Confidence score: 4/5

  • editor/Cargo.toml drops package metadata that is available from the workspace without replacing it with workspace inheritance, which can leave published package metadata incomplete; restore the fields through workspace = true.
  • The PR title has both a non-approved leading verb (“Use”) and the typo “dublicated,” which may violate the project’s title and commit-message conventions; rename it using an approved verb and correct spelling.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="editor/Cargo.toml">

<violation number="1" location="editor/Cargo.toml:3">
P2: Removed `rust-version`, `readme`, `homepage`, and `repository` fields without migrating them to workspace inheritance. These are all defined in `[workspace.package]` in the root `Cargo.toml`, so they should use `xxx.workspace = true` like the other fields. Currently they are silently dropped from this package.</violation>
</file>

<file name="desktop/platform/mac/Cargo.toml">

<violation number="1" location="desktop/platform/mac/Cargo.toml:3">
P2: Custom agent: **PR title enforcement**

PR title starts with invalid leading verb "Use" instead of an approved action verb from the project's leading verb vocabulary</violation>

<violation number="2" location="desktop/platform/mac/Cargo.toml:3">
P2: Custom agent: **PR title enforcement**

PR title has a spelling error: "dublicated" should be "duplicated". The PR title becomes the commit message, and the project's detailed PR title style guide establishes high standards for spelling and language correctness.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread desktop/platform/mac/Cargo.toml Outdated
repository = ""
edition = "2024"
rust-version = "1.87"
# Inherited from workspace - start

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: Custom agent: PR title enforcement

PR title has a spelling error: "dublicated" should be "duplicated". The PR title becomes the commit message, and the project's detailed PR title style guide establishes high standards for spelling and language correctness.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At desktop/platform/mac/Cargo.toml, line 3:

<comment>PR title has a spelling error: "dublicated" should be "duplicated". The PR title becomes the commit message, and the project's detailed PR title style guide establishes high standards for spelling and language correctness.</comment>

<file context>
@@ -1,12 +1,12 @@
-repository = ""
-edition = "2024"
-rust-version = "1.87"
+# Inherited from workspace - start
+version.workspace = true
+license.workspace = true
</file context>

Comment thread desktop/platform/mac/Cargo.toml Outdated
repository = ""
edition = "2024"
rust-version = "1.87"
# Inherited from workspace - start

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: Custom agent: PR title enforcement

PR title starts with invalid leading verb "Use" instead of an approved action verb from the project's leading verb vocabulary

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At desktop/platform/mac/Cargo.toml, line 3:

<comment>PR title starts with invalid leading verb "Use" instead of an approved action verb from the project's leading verb vocabulary</comment>

<file context>
@@ -1,12 +1,12 @@
-repository = ""
-edition = "2024"
-rust-version = "1.87"
+# Inherited from workspace - start
+version.workspace = true
+license.workspace = true
</file context>

Comment thread editor/Cargo.toml Outdated
homepage = "https://graphite.art"
repository = "https://github.com/GraphiteEditor/Graphite"
license = "MIT OR Apache-2.0"
# Inherited from workspace - start

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2: Removed rust-version, readme, homepage, and repository fields without migrating them to workspace inheritance. These are all defined in [workspace.package] in the root Cargo.toml, so they should use xxx.workspace = true like the other fields. Currently they are silently dropped from this package.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At editor/Cargo.toml, line 3:

<comment>Removed `rust-version`, `readme`, `homepage`, and `repository` fields without migrating them to workspace inheritance. These are all defined in `[workspace.package]` in the root `Cargo.toml`, so they should use `xxx.workspace = true` like the other fields. Currently they are silently dropped from this package.</comment>

<file context>
@@ -1,14 +1,12 @@
-homepage = "https://graphite.art"
-repository = "https://github.com/GraphiteEditor/Graphite"
-license = "MIT OR Apache-2.0"
+# Inherited from workspace - start
+version.workspace = true
+license.workspace = true
</file context>

Comment thread desktop/Cargo.toml Resolved
Comment thread node-graph/graphene-cli/Cargo.toml Resolved
Comment thread desktop/platform/mac/Cargo.toml Resolved
Comment thread desktop/Cargo.toml Resolved
@Keavon Keavon changed the title Use cargo workspace to remove dublicated version, license and author fields Use cargo workspace to remove duplicated version, license, and author fields Jun 11, 2026
@Keavon
Keavon requested a review from TrueDoctor as a code owner September 7, 2026 06:49
Base automatically changed from relicense to master September 7, 2026 06:57
@timon-schelling
timon-schelling force-pushed the use-more-cargo-workspace branch from 689fe90 to 20b805e Compare September 7, 2026 11:23
@timon-schelling
timon-schelling force-pushed the use-more-cargo-workspace branch 2 times, most recently from 6d51733 to b86a8a9 Compare September 7, 2026 11:54
@TrueDoctor

Copy link
Copy Markdown
Member

I dislike the use of the use of inherited from workspace start / end comment lines

@timon-schelling

Copy link
Copy Markdown
Member Author

I dislike the use of the use of inherited from workspace start / end comment lines

Also happy to leave them out

@timon-schelling
timon-schelling force-pushed the use-more-cargo-workspace branch 2 times, most recently from 7b6bbd5 to df599ec Compare September 13, 2026 15:22
@timon-schelling

timon-schelling commented Sep 13, 2026 •

Copy link
Copy Markdown
Member Author

!build desktop (Run ID 34766573851)

@github-actions

github-actions Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
📦 Linux Build Complete for 9656f80
Download binary
Download Flatpak

@github-actions

Copy link
Copy Markdown
📦 Windows Build Complete for 9656f80
Download binary

@github-actions

Copy link
Copy Markdown
📦 Mac Build Complete for 9656f80
Download binary

@timon-schelling
timon-schelling added this pull request to the merge queue Sep 15, 2026
Merged via the queue into master with commit c6d6f9f Sep 15, 2026
11 checks passed
@timon-schelling
timon-schelling deleted the use-more-cargo-workspace branch September 15, 2026 10:50
VimYoung pushed a commit to VimYoung/Graphite that referenced this pull request Sep 17, 2026
… fields (GraphiteEditor#4226)

Use cargo workspace to remove dublicated version, license and author fields
meefs pushed a commit to meefs/Graphite that referenced this pull request Nov 11, 2026
…ard as SVG (GraphiteEditor#4499)

* Broken: Basic Skeleton of DataFlow in a request

* Broken: Added selected nodes data flow across runtime

* Fix: Extraction of nodes into svg and sending message

* Fix: Removed comments and unused fn

* Add: First support of svg compatible copy pasting

* Fix: Desktop copy intercept fix and unnecessary edits removal

* Fix: removed package-lock.json

* Fix: added todo and removed Svg branch from clipboard data type

* Fix: applied fix.patch to avoid message discarding

* Fix: renamed TriggerClipboardSvgWrite to TriggerClipboardSvgAndJsonWrite

* Fix: converted SvgTextCopyClipboard from typle to struct variant

* Fix: Fix trigger name in clipboard.ts

* Add: Fix network_interface to include TriggerClipboardSvgAndJsonWrite
for fixing test

* Fix: merge text clipboard message and svgtext clipboard trigger into one

* Fix: function abstractions in runtime.rs

* Apply suggestion from @0HyperCube

Co-authored-by: James Lindsay <[email protected]>

* Switch the Color struct back to storing unassociated alpha (GraphiteEditor#4518)

* Switch Color struct back to storing unassociated alpha

* Address review feedback

* Update the Invert node and legacy image migration for straight alpha and add round-trip tests

---------

Co-authored-by: Keavon Chambers <[email protected]>

* Add the Curves adjustment node with a Transfer Curve type and editor widget (GraphiteEditor#4520)

* Add the Curves adjustment node with a Transfer Curve type and editor widget

* Address review feedback on the Transfer Curve widget's edge cases

* Ease the Smooth gradient interpolation into the ends of an open ramp (GraphiteEditor#4521)

* New node: String to Vec2 (GraphiteEditor#4522)

Add the String to Vec2 node

* Rename the 'Hex to Color' node to 'String to Color' (GraphiteEditor#4523)

* Make 'Gradient Map' use gamma-space luma and move it into adjustments.rs (GraphiteEditor#4524)

Move Gradient Map into adjustments.rs and position it by the classic 0.3/0.59/0.11 luma

* Fix defaulted Item parameters dropping their type alias and rejecting hex string color defaults (GraphiteEditor#4525)

* New node: Color Balance (GraphiteEditor#4527)

* Remove the 'Threshold' node's "Luminance Calculation" parameter (GraphiteEditor#4528)

Remove the 'Threshold' node's luminance calculation dropdown so it always compares the Rec. 601 luma

* Fix cargo-about install command (GraphiteEditor#4512)

Fix cargo about install

* Replace the 'Luminance' node with a 'Desaturate' node with a better selection of desaturation methods (GraphiteEditor#4529)

* Remove the 'Threshold' node's luminance calculation dropdown so it always compares the Rec. 601 luma

* Find the HSL lightness extremes before encoding and drop a stale luminance TODO

* Improve accuracy of the 'Channel Mixer', 'Selective Color', 'Posterize', and 'Exposure' nodes (GraphiteEditor#4530)

* Add a range slider mode to the spectrum widget and slider rows to node properties (GraphiteEditor#4531)

* Add a range slider mode to the spectrum widget and slider rows to node properties

* Reset the weighted strength slider to the node's default of zero and skip markers off the track when picking up the nearest one

* Show a range slider beside bounded range-mode numbers in the Properties panel (GraphiteEditor#4532)

* Show a range slider beside bounded numbers in range mode

* Fall back to a plain number widget when a range's bounds are reversed or equal

* Add a selection mode to the spectrum widget so only the gradient editor supports having a highlighted stop (GraphiteEditor#4533)

* Add a selection mode to the spectrum widget so only the gradient editor keeps a highlighted stop

* Record the drag mode for every drag and require selection for reordering so a non-selecting widget cannot drag the wrong stop

* Add dashed links between spectrum markers and typed marker scales to the shared spectrum sections (GraphiteEditor#4534)

* Add per-channel parameters to the 'Levels' node and make its midtones a gamma value (GraphiteEditor#4535)

* Add per-channel records and a gamma midtones value to the 'Levels' node, with a channel selector in its Properties panel

* Migrate the old 'Levels' midtones through its output range and bound a lone midtone marker by the track edges

* Use cargo workspace to remove duplicated version, license, and author fields (GraphiteEditor#4226)

Use cargo workspace to remove dublicated version, license and author fields

* Desktop: Switch to winit clipboard API (GraphiteEditor#4519)

* Desktop: Upgrade winit and port DnD to the new data transfer API

* Desktop: Read and write the clipboard via the winit data transfer API

* Add colorize and six hue ranges to the 'Hue/Saturation' node (GraphiteEditor#4536)

* Add colorize and six hue ranges to the 'Hue/Saturation' node

* Hide the 'Hue/Saturation' range rows while colorize is on, note the +100 saturation rule, and tidy two lints and a tooltip

* Add a saturation input to the 'Vibrance' node and rework both axes to work in linear light (GraphiteEditor#4537)

* Add a saturation input to the 'Vibrance' node and rework both axes to work in linear light

* Refine the sliders

* Clarify some comments

* Retire the 'Brightness/Contrast Classic' node with the 'Brightness/Contrast' classic toggle now shader compatible (GraphiteEditor#4538)

* New node: 'Photo Filter' to warm or cool an image by multiplying it with a filter color in XYZ (GraphiteEditor#4539)

* Add a "Use Tint" toggle to the 'Black & White' node and give its tint the Luminosity blend's clipping (GraphiteEditor#4540)

* Add a 'Use Tint' toggle to the 'Black & White' node and give its tint the Luminosity blend's clipping

* Fix the Black & White migration for a wired tint and gray out the tint when unused

* Rename the SpectrumInput widget to SliderInput (GraphiteEditor#4541)

Rename the 'SpectrumInput' widget to 'SliderInput'

* Make the ColorInput's gradient rendering strategy to use that of SliderInput (GraphiteEditor#4546)

Make the ColorInput's gradient rendering strategy to use that of SliderInput, fixing a flicker in Firefox when editing gradients

* Fix several bugs causing warning spam in the console (GraphiteEditor#4547)

* Refac: Extracted run match statements into functions && remove duplicate transform

* Fix: Added svg support as image in winit desktp calls

* Fix: Passed None instead of empty string if combined graphics is empty

* Add: Test to verify presence and sanity of svg in clipboard

* Port the clipboard SVG copy to the reworked runtime and keep TriggerClipboardWrite for plain text

* Paint copied layers in document order, place gradients once, and skip empty SVGs

---------

Co-authored-by: James Lindsay <[email protected]>
Co-authored-by: Dennis Kobert <[email protected]>
Co-authored-by: Keavon Chambers <[email protected]>
Co-authored-by: Timon <[email protected]>

This branch was successfully deployed

1 active deployment
graphite-dev (Preview) — 9656f80e Deployed Sep 13, 2026 by github-actions[bot]
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.

2 participants