Add workspace initial support#1358
Conversation
|
We need to understand what repercussions it has on a crate publishing process. We've experienced some issues with the release process in ink! where come internal crates had cyclic dependencies |
This PR is to do with user contract projects with workspace dependencies. That said, this project itself could also be upgraded to use workspace dependencies, I think hernando started a PR for that somewhere. |
|
I agree this should be the default behaviour, just wanted to add it for now as unstable given it's not proven yet how well it works. I'm unsure on the part about cyclic dependencies and how could this small change affect the crate publishing process? On another note, I believe the CI is failing but due to unrelated things. |
I'm fine with bringing it straight in, if it is well tested. i.e. works to compile all existing
I believe @SkymanOne was referring to the issues we experienced when migrating
Should be fixed once #1352 is merged. Just merge in |
|
@ascjones I have created a PR in ink-examples following your recommendation, showing how it works. use-ink/ink-examples#44 |
|
User @faculerena, please sign the CLA here. |
`toml::Value` does not implement Eq or hash
|
Pull request comments addressed. |
We (@faculerena, @tenuki) closed this PR due to some problems with checks and opened PR paritytech/ink-examples#52 as a replacement. |
Summary
Closes #1357
inkorpallet-contracts?Adds unstable flag
workspace-modethat enables the usage of cargo-contracts inside a workspace package.Description
Initially, this PR aimed to address use-ink/ink#1919, but it also fixes the issue when running
cargo-contract.This PR fixes the issue by changing in the manifest all workspace-inherited dependencies to normal dependencies. This is done by grabbing the workspace definition, and merging the dependencies with the ones defined in the crate.
For example if the workspace
Cargo.tomlis:And the contract
Cargo.tomlis:Then when building,
cargo-contractwill use aCargo.tomlwith merged dependencies:Checklist before requesting a review
CHANGELOG.md