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
As DEPENDENCIES_STR and DEPENDENCIES already have both direct and indirect dependencies, IMO a new function should be used to make those only include direct or indirect dependencies. e.g. opts.set_direct_dependencies(true) and opts.set_indirect_dependencies(true). Or have an enum for DIRECT_ONLY, INCLUDE_INDIRECT (as I don't believe anyone is interested in "indirect only") and then something like opts.set_dependency_filter(DIRECT_ONLY).
The text was updated successfully, but these errors were encountered:
Currently
DEPENDENCIES_STR
can have lots of dups in it, likec.f. https://stackoverflow.com/questions/51714866/is-it-documented-that-cargo-can-download-and-bundle-multiple-versions-of-the-sam for some context.
As
DEPENDENCIES_STR
andDEPENDENCIES
already have both direct and indirect dependencies, IMO a new function should be used to make those only include direct or indirect dependencies. e.g.opts.set_direct_dependencies(true)
andopts.set_indirect_dependencies(true)
. Or have an enum forDIRECT_ONLY, INCLUDE_INDIRECT
(as I don't believe anyone is interested in "indirect only") and then something likeopts.set_dependency_filter(DIRECT_ONLY)
.The text was updated successfully, but these errors were encountered: