Develop against local-only packages without ../../
or absolute paths in dependencies
#13708
Labels
A-crate-dependencies
Area: [dependencies] of any kind
A-local-registry-source
Area: local registry sources (vendoring)
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
I am developing set of library crates for personal use. I want to reuse them in several projects of mine. I do not want to publish the libraries or final projects anywhere to the internet or any even private servers as they are for my personal use only (university tasks).
I don't like to specify
path
dependencies as paths may look like:../../../library-crates/project
. Sopath
dependencies are not an option for me!Workspaces and other stuff is discussed in linked stackoverflow question
Proposed Solution
Allow adding locally developed unpublished crates to local-registry (that is
source
of typedirectory
andlocal-registry
) .The approach is similar to maven which allows to
mvn install
package to local repository and later reuse it as regular dependency in other project without specifying obscure paths.Npm supports similar workflow:
Notes
In context of this issue
local
means located on exact same machine, served ideally through filesystem. Some kind of daemon is also acceptableLink to relevant stackoverflow question: https://stackoverflow.com/questions/78279201/how-to-add-local-package-to-local-registry-in-cargo
The text was updated successfully, but these errors were encountered: