Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo: add $HOME/.cargo/lib to rustc default search path #1359

Closed
graydon opened this issue Dec 20, 2011 · 3 comments
Closed

cargo: add $HOME/.cargo/lib to rustc default search path #1359

graydon opened this issue Dec 20, 2011 · 3 comments
Assignees
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@graydon
Copy link
Contributor

graydon commented Dec 20, 2011

If it exists, the cargo lib dir should be added to the rustc default linking path. Figure out what counts as most-useful $HOME on windows.

@kud1ing
Copy link

kud1ing commented Dec 21, 2011

Python's "os.path.expanduser(path)" does the following:

"On Windows, HOME and USERPROFILE will be used if set, otherwise a combination of HOMEPATH and HOMEDRIVE will be used. An initial ~user is handled by stripping the last directory component from the created user path derived above."

A comparable function could be added to "fs.rs"

@ghost ghost assigned brson Jan 5, 2012
@brson
Copy link
Contributor

brson commented Jan 6, 2012

e746ed6 makes rustc aware of cargo's lib folder. Completely untested since I frankly can't get cargo to work.

brson added a commit that referenced this issue Jan 7, 2012
Returns the home directory of the user as appropriate for the platform.

Issue #1359
brson added a commit that referenced this issue Jan 7, 2012
@brson
Copy link
Contributor

brson commented Jan 7, 2012

Fixxored

@brson brson closed this as completed Jan 7, 2012
bjorn3 added a commit to bjorn3/rust that referenced this issue Mar 15, 2023
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
* add section on user types

* line length

* review

* Update src/borrow_check/type_check.md

Co-authored-by: Yuki Okushi <[email protected]>
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
* add section on user types

* line length

* review

* Update src/borrow_check/type_check.md

Co-authored-by: Yuki Okushi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants