-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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. So path 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 type directory and local-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:
npm link --global # links package to global registry
npm link --global my-personal-library # links package from global registry to dependencies of another projectNotes
In context of this issue local means located on exact same machine, served ideally through filesystem. Some kind of daemon is also acceptable
Link to relevant stackoverflow question: https://stackoverflow.com/questions/78279201/how-to-add-local-package-to-local-registry-in-cargo