Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support workspace dependencies #37

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

jwong101
Copy link
Contributor

@jwong101 jwong101 commented Sep 16, 2022

Workspace inheritance was recently stabilized and will be included in the 1.64 release on Sep 22 2022.

This PR simply treats the [workspace.dependencies] table as a default table, since it previously were treated as an invalid dependency section. Per the RFC, only regular dependencies are supported in the [workspace] table.

Copy link
Owner

@saecki saecki left a comment

Choose a reason for hiding this comment

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

Interesting! Apart from the little suggestion I left I think this is good to go.

Leaving this more as a reminder for myself:
We could add a workspace flag to the Section record, and then parse the target and kind anyway so we can add diagnostics for invalid workspace dependencies. Also a lint for optional workspace dependencies (that are not allowed) would be a nice to have.

teal/crates/toml.tl Outdated Show resolved Hide resolved
@saecki saecki merged commit 78fc9b8 into saecki:main Sep 17, 2022
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