fix(manifest): added dev-dependencies to Manifest#124
fix(manifest): added dev-dependencies to Manifest#124JadKHaddad wants to merge 1 commit intoeupn:masterfrom
dev-dependencies to Manifest#124Conversation
Signed-off-by: Jad K. Haddad <jadkhaddad@gmail.com>
taiki-e
left a comment
There was a problem hiding this comment.
Thanks for the PR. The code to be expanded is treated as a bin crate, so I guess this breaks cases that using dev-dependencies in the code to be expanded.
|
@taiki-e So |
Yes, but dev-dependencies should win, similar to the way dev-dependencies are handled in normal tests, because “we do not enable it as a library dependency by default, but we always use it in our tests” is a common case. The (non-exhaustive) rules when there is a conflict with normal dependencies should probably be found in something like the following
|
A project like this
where the same dependency is defined twice, as optional and as not optional, and there is a feature that requires this dependency,
macrotestwill fail with the following error:This PR adds
dev-dependenciesto the manifest and extends themanifest.dev_dependenciesinstead of themanifest.dependencieswith thesource_manifest.dev_dependencies, which was causing thedependenciesto be overridden by thedev-dependencies.