Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean... rust modules aren't typically in your CWD, no? they're not in some node_modules that you can grep, but in a cargo folder with /all of the libraries you ever used/, not just the ones you have for this one project.


Putting them all in the project root takes just a single `cargo vendor` command.

But I would assume that for mozilla their entire CSS subsystem is pulled in as a git (hg?) submodule or something anyways.


not sure how the CSS subsystem is included (I remember it is shared with Servo?), but in general all of the Rust dependencies in mozilla-central is vendored, so nothing is in your ~/.cargo directory.


For what it's worth, eg vscode can jump to definition even when your code is in a different crate that's not in your repository.


If you run cargo vendor, they end up in a neat directory.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: