Skip to content

Introduce workspace dependencies - #12043

Merged
rgwood merged 1 commit into
nushell:mainfrom
abusch:workspace_dependencies
Mar 7, 2024
Merged

rgwood merged 1 commit into
nushell:mainfrom
abusch:workspace_dependencies

Conversation

@abusch

@abusch abusch commented Mar 2, 2024

Copy link
Copy Markdown
Contributor

Description

This PR introduces workspaces dependencies. The advantages are:

  • a single place where dependency versions are declared
  • reduces the number of files to change when upgrading a dependency
  • reduces the risk of accidentally depending on 2 different versions of the same dependency

I've only done a few so far. If this PR is accepted, I might continue and progressively do the rest.

User-Facing Changes

N/A

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

After Submitting

N/A

@fdncred

fdncred commented Mar 2, 2024

Copy link
Copy Markdown
Contributor

Seems reasonable to me. Thanks. Are there any downsides to declaring dependencies this way?

@abusch

abusch commented Mar 2, 2024

Copy link
Copy Markdown
Contributor Author

Not to my knowledge, no. It's been a thing in cargo for quite a while (introduced in 1.64 I think?). We've been using this at work on multiple projects without issues.

@abusch
abusch force-pushed the workspace_dependencies branch from 10ab4dc to 52d8cdf Compare March 7, 2024 04:28
Comment thread Cargo.toml Resolved
@rgwood

rgwood commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Thanks for this! I agree that it's a useful feature. Just have 1 question.

@rgwood

rgwood commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

LGTM. Let's merge this before we have more conflicts.

@rgwood
rgwood merged commit 979a97c into nushell:main Mar 7, 2024
@hustcer hustcer added this to the v0.92.0 milestone Mar 8, 2024
fdncred pushed a commit that referenced this pull request Mar 23, 2024
# Description
This is a followup to #12043 that moves more dependency versions to
workspace dependencies.

# User-Facing Changes
N/A

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
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