Skip to content

Make workspace publishable on crates.io - #249

Merged
jbearer merged 3 commits into
mainfrom
jb/publish
Jul 10, 2026
Merged

Make workspace publishable on crates.io#249
jbearer merged 3 commits into
mainfrom
jb/publish

Conversation

@jbearer

@jbearer jbearer commented Jul 10, 2026

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the Cargo.toml files across several crates (surf-disco, tide-disco, and disco-types) to inherit repository and license-file settings from the workspace, specify explicit dependency versions, and add package descriptions. The reviewer pointed out that inheriting license-file from the workspace root will cause cargo publish to fail because Cargo resolves the license file path relative to each individual crate's directory. It is recommended to use license.workspace = true instead.

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 surf-disco/Cargo.toml
authors.workspace = true
edition.workspace = true
repository.workspace = true
license-file.workspace = true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Inheriting license-file = "LICENSE" from the workspace root will cause cargo publish to fail for this crate. Cargo resolves license-file paths relative to the individual crate's directory (i.e., surf-disco/LICENSE), so it will fail to find the license file during packaging unless a copy exists in every sub-crate.

To fix this, it is highly recommended to use the license field (e.g., license = "MIT OR Apache-2.0") in the [workspace.package] section of the root Cargo.toml, and inherit it here using license.workspace = true.

Suggested change
license-file.workspace = true
license.workspace = true

Comment thread tide-disco/Cargo.toml
edition.workspace = true
authors.workspace = true
repository.workspace = true
license-file.workspace = true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

Inheriting license-file = "LICENSE" from the workspace root will cause cargo publish to fail for this crate. Cargo resolves license-file paths relative to the individual crate's directory (i.e., tide-disco/LICENSE), so it will fail to find the license file during packaging unless a copy exists in every sub-crate.

To fix this, it is highly recommended to use the license field (e.g., license = "MIT OR Apache-2.0") in the [workspace.package] section of the root Cargo.toml, and inherit it here using license.workspace = true.

Suggested change
license-file.workspace = true
license.workspace = true

@jbearer
jbearer merged commit a2ee112 into main Jul 10, 2026
7 checks passed
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.

1 participant