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 support #25

Open
nrc opened this issue May 13, 2015 · 3 comments
Open

Cargo support #25

nrc opened this issue May 13, 2015 · 3 comments

Comments

@nrc
Copy link
Owner

nrc commented May 13, 2015

Need --save-analysis for Cargo. Then support for using cargo instead of rustc in DXR.

@nrc
Copy link
Owner Author

nrc commented May 15, 2015

So, you can easily do this it turns out: cargo rustc -Zsave-analysis. I think you could the just set RUSTC = cargo rustc, and everything should work.

Need to test and document this, if it works.

@snf
Copy link

snf commented May 15, 2015

The problem is cargo rustc didn't make it to 1.0 (afaik) so we must have to wait until 1.1 or use nightly or do something like servo:

run cargo build --verbose and then add the additional flags to the line before rerunning the command.

@nrc
Copy link
Owner Author

nrc commented May 15, 2015

For the near future, DXR will require nightly Rust in any case - we have to frequently fix bugs in the compiler's analysis in order to be able to index large programs. Hopefully once DXR gets more use, save-analysis will be more stable and the release branch will be more usable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants