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

Use Cargo's workspace dependency feature #1093

Open
tsoutsman opened this issue Jan 6, 2024 · 0 comments
Open

Use Cargo's workspace dependency feature #1093

tsoutsman opened this issue Jan 6, 2024 · 0 comments

Comments

@tsoutsman
Copy link
Member

Theseus tries to minimise different versions of the same dependency to minimise the size of the final image. However, this makes updating dependencies a hassle as all the different Cargo.toml files must be updated.

Cargo has a feature called workspace dependencies, which would allow us to define the versions once in the root Cargo.toml, and then inherit that version in crates in the workspace. Note that due to excludes in the root Cargo.toml, none of the benchmark or testing related crates could inherit dependencies, but that's not a big concern.

Initially mentioned by @NathanRoyer on Discord.

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

No branches or pull requests

1 participant