You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just going through the dependencies and I wanted to propose an alternate way to handle dependencies:
All deps will be declared on the workspace level, with default-features = false. No deps will be declared in individual crates.
Each individual crate can opt-in for a dependency (by just doing workspace = true.
All versions are declared on a workspace level and will be inherited by the sub-crates.
Motivation
This way, if we ever want to update a dependency, we have a single file (the workspace Cargo.toml file) where all the versions can be updated and all sub-crates get the same exact version. No worries about mismatch or anything else. We can even use this for path based deps. Makes things easier. This is how I do it in my repos, and they're a breeze to manage.
If that's not the direction you'd want the project to go in, that perfectly works fine too.
The text was updated successfully, but these errors were encountered:
clux
linked a pull request
Mar 25, 2024
that will
close
this issue
Opening an issue as per the discussion on discord: https://discord.com/channels/500028886025895936/1179918831917994005
I was just going through the dependencies and I wanted to propose an alternate way to handle dependencies:
Motivation
This way, if we ever want to update a dependency, we have a single file (the workspace Cargo.toml file) where all the versions can be updated and all sub-crates get the same exact version. No worries about mismatch or anything else. We can even use this for path based deps. Makes things easier. This is how I do it in my repos, and they're a breeze to manage.
If that's not the direction you'd want the project to go in, that perfectly works fine too.
The text was updated successfully, but these errors were encountered: