-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Description
Problem
I would like to specify a dependency relative to my home directory. At the moment I would need to specify the home directory as a full path which is platform dependent, e.g Linux
my_dep = { path = "/home/name/rust/my_dep" }
Proposed Solution
Most shells expand ~
into the current users home directory. It would be nice if cargo could do the same.
my_dep = { path = "~/rust/my_dep" }
That would than be expanded into the user home directory.
Notes
Currently ~/something
is resolved to project-dir/~/something
which is obviously not what is intended by the user.
Also looking through existing issues, this might be the same as #12873
Metadata
Metadata
Assignees
Labels
A-crate-dependenciesArea: [dependencies] of any kindArea: [dependencies] of any kindC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.